Spring Boot Annotations
Frequently used Spring Boot Annotation with details and its usage category wise: 1] Core: @SpringBootApplication : Bootstrap the app with default configurations, auto-config, component scan - Used on Main class @ComponentScan : Scan specific packages for Spring beans - Used on Config/Main class @Configuration : Define Spring beans in Java config - Config class @Bean : Declare & customize a bean manually - Method inside & config class @Value : Inject values from application.properties file - Field, setter, constructor @PropertySource : Load external properties file - Config class 2] DI (Dependency Injection) : @Autowired : Auto inject dependencies by type - Field, setter, constructor @Qualifier : Specify which bean to inject if multiple - Field, Param @Primary : Mark default bean when multiple type is exist - Bean class or method @Inject : Java standard alternatives to @Autowired - Field @Resource : Inject be...