美文网首页
Pointcut is not well-formed: exp

Pointcut is not well-formed: exp

作者: 鸡杂面 | 来源:发表于2019-05-21 02:56 被阅读0次

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

错误配置:

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

正确配置

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

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

相关文章

网友评论

      本文标题:Pointcut is not well-formed: exp

      本文链接:https://www.haomeiwen.com/subject/rtfrzqtx.html