Home » Enterprise Java » spring

spring

Spring Integration Custom Transformer with RabbitMQ Example

RabbitMQ is an open source message broker which implements many protocols. It can be used for point to point, request/ reply or publish-subscribe messaging patterns and is cluster deployable for high availability and throughput. The key point to remember about RabbitMQ‘s messaging model is this: The producer sends messages to an exchange, which pushes them to queues. The two important ...

Read More »

Spring Security Custom Form Login Example

Welcome readers, in spring, the security module is considered important. It enables the developers to integrate the security features in a managed way. In this tutorial, we will show how to design a custom login form to implement the security in a spring mvc framework. 1. Introduction Model-View-Controller (MVC) is a well-known design pattern for designing the GUI based applications. ...

Read More »

Spring static factory-method Example

In spring, developers can create a bean (or the object instantiation) by invoking the static-factory-method. This tutorial will explore the use of factory-method attribute in the spring configuration file. The factory-method attribute is used when the factory-method is static in nature 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of ...

Read More »

Spring init-method and destroy-method Tutorial

Sometimes when the spring beans are created developers need to perform the initialization operations and the cleanup operations before the bean is destroyed. In the spring framework, we can use the init-method and the destroy-method tags in the bean configuration. This tutorial will explore these tags to briefly understand the initialization and destruction. Table Of Contents 1. Introduction 1.1 Spring ...

Read More »

Spring @Configuration Annotation Example

Spring 3.x framework provides support for moving the bean definitions out of the XML file into the Java class. This tutorial will explore the Spring-specific @Configuration annotation for spring annotation based configuration. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its ...

Read More »

Spring MVC Pagination Example

Pagination is a mechanism to display a large number of records in different parts. In this tutorial, we will show how to implement the pagination functionality in the spring mvc framework. 1. Introduction Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the Spring framework is its layered ...

Read More »

Spring MVC ModelMap Example

In spring mvc, the org.springframework.ui.ModelMap object is used to pass the multiple values from the spring controller to the view. In this tutorial, we will show how to implement the org.springframework.ui.ModelMap object with the spring mvc framework. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the ...

Read More »

Spring vs Spring Boot Example

1. Spring vs Spring Boot Welcome to the Spring vs Spring Boot example. First and foremost, this is not Spring MVC vs Spring Boot. So you won’t find any discussion relating to web. The example that will be shown here is the simplest thing that could possibly work to show the difference between Spring and Spring Boot. When we speak ...

Read More »

Spring RowMapper Example

Spring Jdbc framework provides a mechanism to fetch the records from a database using the query() method. This tutorial will explore the Spring Jdbc connectivity to fetch the records from the relational database. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development One of the chief advantages of the ...

Read More »

Spring Prototype Bean Scope Example

In the spring framework, developers can create beans using the in-built spring bean scopes. Out of five in-built scopes, Singleton and Prototype are primary and available in any type of IOC containers. This tutorial will explore the Prototype bean that returns a new bean instance for each and every request. 1. Introduction 1.1 Spring Framework Spring is an open-source framework ...

Read More »