List some of the Spring Framework Annotations?

Core Spring Framework Annotations

  • @Required
  • @Autowired
  • @Qualifier
  • @Configuration
  • @Bean
  • @Lazy
  • @Value

Spring Framework Stereotype Annotations

  • @Component
  • @Controller
  • @Service
  • @Repository

Spring Boot Annotations

  • @EnableAutoConfiguration
  • @SpringBootApplication

Spring MVC and REST Annotations

  • @RequestMapping
    • @GetMapping
    • @PostMapping
    • @PutMapping
    • @PatchMapping
    • @DeleteMapping
    • @ExceptionHandler
    • @InitBinder
    • @Mappings
    • @Mapping
    • @MatrixVariable
    • @PathVariable
    • @RequestAttribute
    • @RequestBody
    • @RequestHeader
    • @RequestParam
    • @RequestPart
    • @ResponseBody
    • @ResponseStatus
    • @ControllerAdvice
    • @RestController
    • @RestControllerAdvice
    • @SessionAttribute
    • @SessionAttributes
  • @CookieValue
  • @Controller
  • @CrossOrigin

Spring Cloud Annotations

  • @EnableConfigServer
  • @EnableEurekaServer
  • @EnableDiscoveryClient
  • @EnableCircuitBreaker
  • @HystrixCommand

Spring Framework DataAccess Annotations

  • @Transactional

Cache-Based Annotations

  • @Cacheable
  • @CachePut
  • @CacheEvict
  • @CacheConfig

Task Execution and Scheduling Annotations

  • @Scheduled
  • @Async

Spring Framework Testing Annotations

  • @BootstrapWith
  • @ContextConfiguration
  • @WebAppConfiguration
  • @Timed
  • @Repeat
  • @Commit
  • @RollBack
  • @DirtiesContext
  • @BeforeTransaction
  • @AfterTransaction
  • @Sql
  • @SqlConfig
  • @SqlGroup
  • @SpringBootTest
  • @DataJpaTest
  • @DataMongoTest
  • @WebMVCTest
  • @AutoConfigureMockMVC
  • @MockBean
  • @JsonTest
  • @TestPropertySource