Cheat sheet des annotations Spring Boot les plus couramment utilisées, organisées par catégorie : (en anglais😃)
🟣 Core Annotations
- #@SpringBootApplication
- #@Configuration
- #@ComponentScan
- #@B****ean
- #@Value ......
🟣 Stereotype Annotations
- #@Component
- #@Service
- #@Repository
- #@Controller
- #@RestController .......
🟣 Web Annotations
- #@RequestMapping
- #@GetMapping, #@PostMapping, #@PutMapping, #@DeleteMapping, #@PatchMapping
- #@RequestParam
- #@PathVariable
- #@RequestBody
- #@ResponseBody ........
🟣 Data Access Annotations
- #@Transactional
- #@PersistenceContext
- #@Query
- #@Modifying .......
🟣 Validation Annotations
🟣 Security Annotations
- #@PreAuthorize
- #@Secured
- #@RolesAllowed .........
🟣 Scheduling and Asynchronous Processing
- #@Scheduled
- #@EnableScheduling
- #@Async
- #@EnableAsync .........
Cet cheat sheet devrait vous aider à référencer rapidement les annotations Spring Boot les plus couramment utilisées dans votre processus de développement 🤝🚀
Let's grow together🚀
Top comments (0)