spring boot most asked annotations
spring boot most asked annotations
@ComponentScan
@EanbleAutoConfiguration
@Configuration
Stereotype annotation
1. @Component
2. @Service
3. @RestController / @Controller
4. @Repository
Spring Core related Annotations:
• @Configuration
• @Bean
• @Autowired
• @Qualifier
• @Lazy
• @Value
• @PropertySource
• @ConfigurationProperties
• @Profile
• @Scope
REST API related Annotations:
• @RestController
• @RequestMapping
• @GetMapping
• @PostMapping
• @PutMapping
• @DeleteMapping
• @RequestBody
• @PathVariable
• @RequestParam
• @ControllerAdvice & @ExceptionHandler
Spring Data JPA related annotations:
• @Entity
• @Table
• @Column
• @Transactional
• @OnetoOne
• @OnetoMany
• @ManytoOne
• @ManytoMany
Security related Annotations:
• @CrossOrigin
• @Secured
• @PreAuthorize
• @PermitAll
Caching related Annotations:
• @EnableCaching
• @Cacheable
• @CachePut
• @CacheEvict
Aspect Oriented annotations.
• @Aspect
• @Pointcut
• @AfterRunning
• @AfterThowing
• @Around
• @Before
Spring Cloud annotations
Kafka annotations