Home » Author Archives: Yatin (page 5)

Author Archives: Yatin

Yatin
The author is graduated in Electronics & Telecommunication. During his studies, he has been involved with a significant number of projects ranging from programming and software engineering to telecommunications analysis. He works as a technical lead in the information technology sector where he is primarily involved with projects based on Java/J2EE technologies platform and novel UI technologies.

Spring Singleton 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 Singleton bean that returns a single bean instance per IOC container. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to ...

Read More »

Spring @ResponseBody Annotation Example

Welcome readers, in this tutorial we will show how to implement the Spring @ResponseBody Annotation to return a Json response from a Spring Mvc Controller. 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 Spring framework is its layered architecture, which allows ...

Read More »

Spring @RequestBody Annotation Example

Welcome readers, in this tutorial we will show how to implement the Spring @RequestBody Annotation to convert the incoming Json request to a Model object. 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 Spring framework is its layered architecture, which allows a ...

Read More »

Spring Rest Hibernate Example

Welcome readers, in this tutorial, we will show how to implement the REST services to perform the SQL operations using the Spring MVC and Hibernate framework. 1. Introduction Developers can refer to this link to briefly understand the Spring, Spring MVC, and Hibernate framework. 1.1 Download and Install Hibernate Developers can read this tutorial in order to download and install ...

Read More »

Spring @Resource Annotation Example

JDK JSR-250 provides a property or method-level annotation that supports the Autowiring functionality in the spring framework. Spring supports this injection by using the @Resource annotation, applied to either the property or the setter method of a bean. This tutorial will explore the JDK-specific @Resource annotation in the spring. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created ...

Read More »

Spring @Required Annotation Example

Spring framework provides a method-level annotation which is applied to the bean property setter methods for making the setter-injection mandatory. This tutorial will explore the Spring-specific @Required annotation. 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 Spring framework is its layered ...

Read More »

Spring @Autowired Annotation Example

Spring framework provides autowiring of beans using the XML configuration but the developers decided to go a step ahead and provide the autowiring annotation. This tutorial will explore the Spring-specific annotation (i.e. @Autowired) that will automatically inject the dependent beans. 1. Introduction 1.1 Spring Framework Spring is an open-source framework created to address the complexity of an enterprise application development ...

Read More »

Spring Beans Autowiring Example

One of the most important development principles of the modern software design is the ability to autowire the relationships between the collaborating beans. Spring framework provides a mechanism to implicitly inject the object dependencies. In spring, developers can implement the autowiring functionality with the traditionally XML based or the annotation based configuration. This tutorial will explore the different auto-wiring modes ...

Read More »

Spring MVC @ControllerAdvice Annotation Example

Unexpected exceptions or errors can be thrown anytime during the execution of a program. In the previous post, we have already seen how the @ExceptionHandler annotation can only be applied to a single controller but what if developers want to handle the exception globally i.e. across multiple controllers. Thus, in this tutorial, we will show how to do the exception ...

Read More »

Spring MVC @ExceptionHandler Annotation Example

In this post, we feature a comprehensive Example on Spring MVC @ExceptionHandler Annotation. Unexpected exceptions or errors can be thrown anytime during the execution of a program. Spring MVC framework provides three different approaches for handling the exceptions i.e. Using XML based configuration by declaring the SimpleMappingExceptionResolver bean in the Spring’s application context file and mapping the exception types with ...

Read More »