This example shows how to use ApplicationListener in Spring framework. If you implement your own listener with the use of ApplicationListener, you can invoke the method at the start up of the spring application. SpringContextListener.java spring4-mvc-dispatcher-servlet.xml web.xml
Spring Framework
Spring Data JPA + Querydsl Integration
As you’ve get introduced at Spring Data – JPA, about Inquiring entities using all of those benefits that provided by Repository. So, either you are using those default methods such as findOne() and findAll() or you are using those User-Defined ones that depends on the Query Derivation concept, you are almost getting headache, because of those many details that …
Spring Data JPA Tutorial
Persistence API (JPA) provides POJO (Plain Old Java Object) standard and object relational mapping (OR mapping) for data persistence among applications. Persistence, which deals with storing and retrieving of application data, can now be programmed with Java Persistence API starting from EJB 3.0 as a result of JSR 220. This API has borrowed many of …
Spring Tool Suite 3.5.0 Released
Last week Spring IO team has announce the next major release of their IDE Spring Tool Suite 3.5.0. If you are not familiar with their IDE, it is built on top of the Eclipse IDE to support the spring applications with easy to use features. It would support all the spring features out of the …
Spring Web Flow 2.4 RC1 Released
Last week Spring IO team has announced the first release candidate for Spring Web Flow 2.4. The release includes Java based configuration for Spring Web Flow and Spring Faces. Prior to this release, Spring Web Flow doesn’t support the Java based configurations. Here is the list of features included in this version. If you want to …
Spring Boot 1.0.0.RC5 Released!!
This week Spring IO team has announced that they have released the final released candidate for the Spring Boot 1.0.0 road map. So, the next version will be the final release of the project. Spring Boot project is intended to use the auto configuration of your spring applications instead of developers manually configure the environmental …
Spring – NoUniqueBeanDefinitionException: No qualifying bean of type is defined: expected single matching bean but found 2:
In spring, we can auto wire the objects by using the @Autowired annotation. This annotation has the intelligence to detect the most relevant types for the references by looking at the various criteria like variable name, object type, super class, generic type, qualifier, etc. However, in few scenarios it will find the 2 or more …
Spring 4 – Generics Type as Qualifier When Injecting Beans
Generics is one of the most liked feature and most powerful for the Java programming. Spring framework fully supports the generics types for the beans and always try to make use of all the Java programming features like Generics, Annotations, etc. Unfortunately, one problem with earlier versions of Spring was that you could nott use generics …