<aop:pointcut />


<aop:config> <aop:pointcut id="serviceMethod" expression="execution(* *..*Service.*(..))" /> 
</aop:config>


其中: expression="execution(* *..*Service.*(..))"
第一个* 表示任意返回值类型
第二个* 表示以任意名字开头的package. 如 com.xx.
第三个* 表示以任意名字开头的class的类名 如TestService
第四个* 表示 通配 *service下的任意class
最后二个.. 表示通配 方法可以有0个或多个参数

猜你喜欢

转载自ewf-momo.iteye.com/blog/1707465