Pointcut is not well-formed: expecting 'name pattern' at character position

配置aop报错:原因是配置切点表达式的时候报错了:

错误配置:

expression="execution(*com.zyh.service.*ServiceImpl.*(..))" 

正确配置

expression="execution(* com.zyh.service.*ServiceImpl.*(..))" 

就是在* com.zyh.service的星号后面要注意加空格

你可能感兴趣的:(Pointcut is not well-formed: expecting 'name pattern' at character position)