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());
    }
注意第一个星号后面有一个空格。

 
                
            
         
         浙公网安备 33010602011771号
浙公网安备 33010602011771号