Annotations Articles
Articles organizing the roles, differences, and correct usage of frequently encountered annotations in Spring Boot.
-
How to Implement Group Validation and Method Validation with Spring Boot @Validated Annotation
A guide to safely integrating group validation and Service layer method validation using Spring Boot's @Validated, covering differences from @Valid and exception handling.
-
How to Simply Implement Validation with Spring Boot @Valid Annotation
A thorough explanation of how to use the @Valid annotation for validating form and API request data in Spring Boot, along with detailed control methods using various constraint annotations.
-
What is @Configuration / @Bean in Spring Boot? A Clear Guide to How to Use Them
Have you ever come across @Configuration or @Bean while developing with Spring Boot? These are points that tend to cause confusion, such as 'What's the difference from @Component?' and 'Where is the correct place to use them?' This article explains the roles and usage of @Configuration/@Bean with concrete examples.
-
Spring Boot @Scheduled: Cron Jobs, fixedRate, and fixedDelay Explained
Learn how to schedule tasks in Spring Boot using @Scheduled. Covers cron expressions, fixedRate vs fixedDelay, timezone settings, and how to avoid common pitfalls like duplicate execution and silent failures.
-
What is @Component in Spring Boot? Differences from @Bean Explained
A beginner-friendly explanation of @Component in Spring Boot. Covers the differences from @Bean, when to use each, the relationship with dependency injection, and common decision points in real-world development, with code examples.