DEV Community

Cover image for Cheat sheet des annotations Spring Boot
Saïfoulaye Diallo
Saïfoulaye Diallo

Posted on

Cheat sheet des annotations Spring Boot

Cheat sheet des annotations Spring Boot les plus couramment utilisées, organisées par catégorie : (en anglais😃)

cheat-sheet spring annotations

🟣 Core Annotations

  1. #@SpringBootApplication
  2. #@Configuration
  3. #@ComponentScan
  4. #@B****ean
  5. #@Value ......

Core Annotations

🟣 Stereotype Annotations

  1. #@Component
  2. #@Service
  3. #@Repository
  4. #@Controller
  5. #@RestController .......

Stereotype Annotations

🟣 Web Annotations

  1. #@RequestMapping
  2. #@GetMapping, #@PostMapping, #@PutMapping, #@DeleteMapping, #@PatchMapping
  3. #@RequestParam
  4. #@PathVariable
  5. #@RequestBody
  6. #@ResponseBody ........

Web Annotations

🟣 Data Access Annotations

  1. #@Transactional
  2. #@PersistenceContext
  3. #@Query
  4. #@Modifying .......

Data Access Annotations

🟣 Validation Annotations

  1. #@Valid
  2. #@notnull, #@NotEmpty, #@notblank
  3. #@Size, #@min, #@max
  4. #@Pattern .......

Validation Annotations

🟣 Security Annotations

  1. #@PreAuthorize
  2. #@Secured
  3. #@RolesAllowed .........

Security Annotations

🟣 Scheduling and Asynchronous Processing

  1. #@Scheduled
  2. #@EnableScheduling
  3. #@Async
  4. #@EnableAsync .........

Scheduling and Asynchronous Processing

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🚀

springframework #springboot #springannotations #java #javadeveloper #cheatsheet

linkedin profile

Top comments (0)