Spring Annotations Reference: Spring MVC Spring Boot Spring Data JPA This Blog
Spring Annotations Reference: Spring MVC Spring Boot Spring Data JPA This Blog
Core, Spring MVC, Spring Boot, Spring Data JPA, etc. modules that are already
published in this blog. This list will be keep updated by me when I am writing tutorial
for new annotations. You can bookmark this tutorial for quick reference of most
important annotations used in spring applications.
and @Service.
Spring bean dependencies are defined in the XML files, the same
configurations.
@Qualifier There may be scenarios when we create more than one bean of the
same type and want to wire only one of them with a property. This
can be controlled using @Qualifier annotation along with
Difference between
This tutorial explains the difference between these three annotations
@Resource, @Autowired
@Resource, @Autowired and @Inject used for injecting the objects.
and @Inject
@Inject and @Named introduced in Spring 3 as alternative for the spring annotations
details easily in our controller class. This annotation would bind the
@RequestHeader
header details with the method arguments, and it can be used inside
the methods.
this component.
object.
This tutorial explains one of the new features introduced in spring
@Conditional
4, conditional annotation type.
This spring data series tutorial explains @Query annotation and how
@Query
to create custom query using the @Query annotation.
Instead of using the XML files, we can use plain Java classes to
that the class is used for defining the beans using the @Bean
annotation.
@Controller, This tutorial explains you some of the key annotations that are
@InitBinder
Difference between
This tutorial explains you what is the difference between the two
@RequestParam and
annotations @RequestParam and @PathVariable.
@PathVariable
This tutorial shows how to load the properties file values using the
@Value
@Value annotation.