spring_(13)通过注解配置之一

在classpath中扫描组件 组件扫描(component scanning):Spring 能够从classpath下自动扫描,侦测和实例化具有特定注解的组件. 特定组件包括: @Component:基本注解,标识了一个受Spring管理的组件 @Respository:标识持久层组件 @Service:标识服务层(业务层)组件 @Controller:标识表现层组件 UserService
相关文章
相关标签/搜索