Spring AOP Pointcut syntax for AND, OR and NOT

前端 未结 3 2080
半阙折子戏
半阙折子戏 2021-02-12 13:31

I\'m having trouble with a pointcut definition in Spring (version 2.5.6). I\'m trying to intercept all method calls to a class, except for a given method (someMethod in the exam

3条回答
  •  逝去的感伤
    2021-02-12 14:02

    i know its probably a bit late at this stage but ive been having the same issue and I resolved it by escaping the ampersand chars so its && ! instead of 'AND NOT' or '&& !'. I'm doing this in the xml file

    
        
        
    
    

    This applies the advice to all methods executed in com.disney.goofy and that are not annotated with NonDisneyCharacter

提交回复
热议问题