一:用于创建对象的注解
1.@Component组件,没有明确的角色
2.@Repository在数据访问层使用(dao层)
3.@Service在业务逻辑层使用(service层)
4.@Controller在控制层使用,控制器的声明
二:用于注入数据的注解
1.@Autowired
2.@Resource
3.@Value
三:用于改变作用范围的注解
1.@Scope:用于指定bean的作用范围
四:切面(AOP)相关注解
@Aspect:声明一个切面
@After:
@Before:
@Arount