1. @component: 创建一个类对象,相当于配置了一个
  2. @Service:功能与@Component相同,但是@Service通常卸载ServiceImpl类上
  3. @Repository:功能与@Component相同,但是@Repository建议用在数据访问层类上
  4. @Controller:功能与@Component相同,@Controller建议写在控制器类上
  5. @Resource:默认按照byName进行注入,如过没有名称对象则按照byType进行注入
  6. @Autowired:默认按照byType方式进行注入
  7. @Value():用来获取properties配置文件中的内容
  8. @Pointcut:定义切点
  9. @Aspect():定义切面类
  10. @Before():前置通知
  11. @After:后置通知
  12. @AfterReturning:后置通知,前提是切点必须正常执行
  13. @AfterThrowing:异常通知
  14. @Arround:环绕通知