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

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