- @Component bean
- @Service 写在ServiceImpl类上
- @Repository 写在数据访问层
- @Controller 写在控制器
- @Resource java注解 默认按照ByName 没有按照ByType
- @AutoWired Spring注解 默认按照ByType注入
- @Value 获取属性文件
- @PointCut 定义切点
- @Aspect 定义切面
- @Before 定义前置通知
- @After 定义后置通知
- @After-Returning 定义后置通知 正确执行
- @After-Throwing 异常通知
- @Around 定义环绕通知
Spring注解
最新推荐文章于 2022-08-05 09:58:18 发布