Quantcast
Channel: Spring AOP: Annotation on any method called x not working - Stack Overflow
Browsing latest articles
Browse All 3 View Live

Answer by gabuzo for Spring AOP: Annotation on any method called x not working

Spring AOP Proxies and aspectJ had some differences mainly:Spring AOP only works on public methods.Spring AOP does not work for self invocations.You can have a look to sections 8.4 & 8.5 of...

View Article



Answer by Abhinav Sarkar for Spring AOP: Annotation on any method called x...

Try:@Before("execution(public * *.doPoll(..))")public void anyPublic() { System.out.println("HIT POINTCUT");}

View Article

Spring AOP: Annotation on any method called x not working

I am getting started with AOP for the first time.I have my first aspect as follows:@Aspectpublic class SyncLoggingAspect { private final Logger logger = Logger.getLogger(this.getClass());...

View Article
Browsing latest articles
Browse All 3 View Live




Latest Images