<aop:config>
<aop:pointcut id="allManagerMethod" expression="execution(* com.gxf.crm.service.*.*(..))"/>
<aop:advisor advice-ref="txAdvice" pointcut-ref="allManagerMethod" />
</aop:config>
execution(* com.gxf.crm.service.*.*(..))
把第一个星后面加个空格,第一个星是返回类型,你跟后面的com连一起他会误解为通配符
execution(* com.gxf.crm.service.*.*(..))
注意aop表达式:第一个*号,后面要加空格.
本文详细解析了AOP配置中出现的Pointcut is not well-formed: expecting 'name pattern'错误,并提供了修正方法。重点在于正确理解并使用AOP表达式,避免将普通字符误作通配符。
168万+

被折叠的 条评论
为什么被折叠?



