Loading

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());
    }

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

posted @ 2017-06-18 17:09  stono  阅读(295)  评论(0编辑  收藏  举报