例子:
解释一下(* com.yan.service.impl.*.*(..))中几个通配符的含义:
第一个 * —— 通配 任意返回值类型
第二个 * —— 通配 包com.yan.service.impl下的任意class
第三个 * —— 通配 包com.yan.service.impl下的任意class的任意方法
第四个 .. —— 通配 方法可以有0个或多个参数
<aop:config>
<aop:pointcut id="interceptorPointCuts"
expression="execution(* com.yan.service.impl.*.*(..))" />
<aop:advisor advice-ref="txAdvice"
pointcut-ref="interceptorPointCuts" />
</aop:config>
解释一下(* com.yan.service.impl.*.*(..))中几个通配符的含义:
第一个 * —— 通配 任意返回值类型
第二个 * —— 通配 包com.yan.service.impl下的任意class
第三个 * —— 通配 包com.yan.service.impl下的任意class的任意方法
第四个 .. —— 通配 方法可以有0个或多个参数