Spring 提供了大量的注解@Annotation以供开发者使用:
@Annotation
@Component
@Service
@Controller
<bean>
<context:component-scan>
@ComponentScan
这些配置极大地简化了程序开发及配置,也为Spring Boot的自动配置提供了技术基础。