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.
-
Using the @Scheduled Annotation in Spring Boot
A beginner-friendly guide to using @Scheduled in Spring Boot with real examples. Covers the differences between fixedRate, fixedDelay, and cron, timezone configuration, and common pitfalls (duplicate execution, exception-caused stops) with solutions.
-
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.