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