dinesh Archive
The @Component Annotation Indicates that an annotated class is a “component“. Such classes are considered as candidates for auto-detection when using annotation-based configuration and classpath scanning. The @Component is a generic stereotype for any Spring-managed …
In this chapter you will learn how to implement the @PostConstruct and @PreDestroy which work similar to init-method and destroy-method in bean configuration file (spring.xml) describe in earlier chapter or implement the InitializingBean and DisposableBean …
You can use @Resource annotation on fields or setter methods and it works the same as in Java EE 5. The @Resource annotation takes a ‘name‘ attribute which will be interpreted as the bean name …
In this tutorial we would discuss about the Stereotype Annotations in Spring. Spring @Component, @Repository, @Service and @Controller are Stereotype Annotations. @Component is generic stereotype annotation for any Spring-managed component. In the previous version Spring …
@AspectJ refers to a style of declaring aspects as regular Java classes annotated with Java 5 annotations. The @AspectJ style was introduced by the AspectJ project as part of the AspectJ 5 release. Spring 2.0 …
In this article, we will explore about the JSR-250 Annotations with the Spring Framework. JSR 250, as a Java Specification Request, has the objective to define a set of annotations that address common semantic concepts …
In previous chapter, In @Autowired annotation, The @Autowired annotation is auto wire the bean by matching data type if spring container find more than one beans same data type then it find by name. Suppose …