这些选择之一如何?
A)具有程序包限制的常规执行切入点:
execution(* *(..)) &&( within(com.abc.xyz..controller..*) || within(com.abc.xyz..service..*) || within(com.abc.xyz..dao..*))
B)程序包限制的执行切入点:
execution(* com.abc.xyz..controller..*(..)) ||execution(* com.abc.xyz..service..*(..)) ||execution(* com.abc.xyz..dao..*(..))
顺便说一句,我更喜欢B,因为它更短并且更容易阅读。您可能已经猜到了,
..表示法的意思是“任何包或子包”,而
*在表达式的末尾
..表示“任何类中的任何方法”。



