✅ Spring Boot Annotations
π 1. Main Application Setup π° @SpringBootApplication – This is a convenience annotation that combines: @Configuration , @EnableAutoConfiguration , and @ComponentScan . It is used on the main class to bootstrap and launch a Spring Boot application. @Configuration – Indicates that the class contains Spring bean definitions. Beans defined here will be registered in the application context. @EnableAutoConfiguration – Tells Spring Boot to automatically configure beans based on the classpath, properties, and existing beans. Helps reduce manual configuration. @ComponentScan – Enables automatic scanning of packages for components like @Component , @Service , @Repository , and @Controller . π§© 2. Component & Bean Annotations π§© @Component - Spring-managed component (auto-detected). π§ @Service - For business logic layer. π️ @Repository - For data access layer with exception translation. ...