This tutorial highlights the advantage of using @EventListener in Spring 4.2 for listening to the events. One of the most important feature added to the Spring 4.2 is support for annotation driven event listeners. Now you can enable/mark a method with annotation @EventListener. also read: Spring Tutorials ContextRefreshedEvent And ApplicationListener In Spring @EventListener is the …
Spring Framework
Spring 4.2 Released
Spring IO community has announced its release of Spring Framework 4.2. There is no great or major features added as part of this release. This release is mainly for refining the existing features and minor new features. The following are the list of new features added as part of this release. In our earlier articles …
@Profile Annotation in Spring 4
This tutorial explain how to enable profiles in your spring application for different environments. Also this tutorial explains the new improvements in the Spring 4.0 release and how it is different from the older releases. If you are working for a real time projects, it is often basic requirement to have the different environments like …
Spring Boot : Running Spring MVC Application
This tutorial for beginners who are interested to learn basics of Spring Boot and Spring MVC working together. At the end of this tutorial, you could run a simple SPring MVC application using Spring Boot. Spring Boot is a Spring IO Project aimed at reducing the Spring application startup configurations and wiring. Developer has to …
Spring MVC Annotations : @Component, @Repository, @Service
This tutorial explains the advantage of using the spring mvc annotations @Component, @Repository and @Service and how to use them. Spring Annotations are one of the nice feature to configure the Spring MVC applications. There are wide variety of annotations are define in the Spring Framework. In our earlier tutorials many of the most widely …
Spring Boot : Integration Testing REST API in Spring Boot
This tutorial explains how to write the integration testing REST API in Spring Boot. This tutorial uses the examples written in the previous tutorial. This tutorial intends to create the automated testing using JUnit and runs with Spring Boot application. This tutorial assumes the reader has enough already knowledge on the Spring REST web services. If …
Spring Boot : RESTful API using Spring Boot and MongoDB
This tutorial explains how to implement RESTful web service using SpringBoot and MongoDB. This tutorials uses already implemented REST services using Node.js and ExpressJS frameworks. Here the same examples tested with SpringBoot. The following are the frameworks used in this tutorial for running the given example. If you are very much interested in learning the …
Spring : Method Injection using lookup-method property
Method Injection using lookup-method property Before start jumping into the topic, let me brief about the two important scopes in Spring and how that is working inside the spring container. Singleton scoped beans instances are created only once per container and they are re-used for the multiple requested. Prototype scoped beans instances are created for …