Spring AOP 学习笔记

1.如果要使用 @AspectJ aspects 的Style,请在配置文件里写入:

<aop:aspectj-autoproxy/>

并将相关的 aop schema 引入

 

2.已经是aspect就不能被别的asperct jion了

In Spring AOP, it is not possible to have aspects themselves be the target of advice from other
aspects. The @Aspect annotation on a class marks it as an aspect, and hence excludes it from
auto-proxying.

 

 

你可能感兴趣的:(spring,AOP)