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


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


如:  在com.cn.advice 包下的Shop类中:

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

    在@After("execution(  com.cn.bean.******)")在execution( 后加个 "*"以及空格  就正确了

     成功切入后 左边会有提示:

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




相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2021-12-06
  • 2021-05-24
  • 2021-10-14
猜你喜欢
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案