dinesh Archive
The @Required annotation is used to specify that the value of a bean property is required to be dependency injected. That means, an error is caused if a value is not specified for that property. …
In last Spring Bean Autowiring in Spring in XML example, it will autowired the matched property of any bean in current Spring container. In most cases, you may need autowired property in a particular bean …
In Spring 2.0 introduced support for various annotations for configuration purposes, such as @Transactional, @Required and @PersistenceContext /@PersistenceUnit. Spring 2.5 introduces support for a complete set of configuration annotations: @Autowired in combination with support for …
In last couple of tutorials we have seen that the basic features about spring framework as like Spring IoC Container, Dependency Injection, ApplicationContext, BeanFactory etc. In first chapter we have discussed about Dependency Injection using …
In this article, we will explore BeanFactoryPostProcessor in Spring. BeanFactoryPostProcessor works on the bean definitions or configuration meta data of the bean before beans are actually created. Spring provides multiple BeanFactoryPostProcessor beans, so it invoked …
In this tutorial we discuss about the BeanPostProcessor and its need. BeanPostProcessor is interface that tells Spring to do some processing after initialization some beans. BeanPostProcessor is interface that tells Spring to do some processing …
In this article, you’ll be given an overview of Spring Bean Life cycle managed by the spring container, including understanding of Spring containers and IoC. You’ll also get an overview of the spring bean life …