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

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

学习了:http://blog.csdn.net/benjamin_whx/article/details/37816675

    @Before("execution(* com.wisely.highlight_spring4.ch1.aop.DemoMethodService.*(..))")
    public void before(JoinPoint joinPoint){
        MethodSignature signature = (MethodSignature) joinPoint.getSignature();
        Method method = signature.getMethod();
        System.out.println("方法规则式拦截," + method.getName());
    }

注意第一个星号后面有一个空格。

原文地址:https://www.cnblogs.com/stono/p/7044694.html