Spring Annotation
Bean Annotations
@Component
@Component@Service
@Service@Repository
@Repository@Component Scanning
@Component Scanning@Configuration
@ComponentScan(basePackages = "com.baeldung.annotations")
class VehicleFactoryConfig {}
@Configuration
@ComponentScan(basePackageClasses = VehicleFactoryConfig.class)
class VehicleFactoryConfig {}@Controller
@Controller@Configuraion
@ConfiguraionWeb Annotations
@RequestMapping
@RequestMapping@RequestBody
@RequestBody@PathVariable
@PathVariable@RequsetParam
@RequsetParam@ResponseBody
@ResponseBody@ExceptionHandler
@ExceptionHandler@ResponseStatus
@ResponseStatus@RestController
@RestController@ModelAttribute
@ModelAttributeCore Annotations
@Autowired
@Autowired@Bean
@Bean@Qualifier
@Qualifier@Required
@Required@Value
@Value@DependsOn
@DependsOn@Lazy
@Lazy@Lookup
@Lookup@Primary
@Primary@Scope
@Scope@Profile
@Profile@Import
@Import@ImportResource
@ImportResource@PropertySource
@PropertySource@PropertySources
@PropertySourcesLast updated