Pointcut is not well-formed: exp

2019-05-21  本文已影响0人  鸡杂面

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

错误配置:

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

正确配置

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

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

上一篇 下一篇

猜你喜欢

热点阅读