java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 30
execution(*com.crud.service.*(..))
^
这明显是Pointcut切点的配置出现了问题,但是我查了之前的代码,没有什么异常情况,除了我使用了类型匹配的语法,但是问题就出现在这个类型匹配语法上,看上述的切点表达式:
<!--开启基于注解的事务,使用xml配置形式的事务(必要主要的都使用配置式) -->
<aop:config>
<!-- 切入点表达式 -->
<aop:pointcut expression="execution(*com.crud.service.*(..))" id="txPoint"/>
<!--配置事务增强 -->
<aop:advisor advice-ref="txAdvice" pointcut-ref="txPoint"/>
</aop:config>
上述execution切点指示符中,用于匹配修饰符和返回类型的“*”和之后的类的全限定名之间使用该有一个空格的,没有空格就会出现上述的错误。