I'm writing a simple spring-aop program that intercepts the controller and runs after a method has returned. I'm integrating this in an existing project as well. I want that this aspect kick in after the controller returns back.
This is the pointcut that I've used that just sends some text to the output stream.
I'm new to AspectJ and don't know where I'm going wrong. Is it the way I'm wiring it together? Or am I using incompatible jars? I hope I described my problem clearly otherwise I will clarify further.
These are the relevant jars I have in my /lib directory (not using
maven unfortunately):
- aspectjrt-1.6.5.jar
- aspectjweaver-1.6.2.jar
- spring-aop-3.2.10.jar
- aopalliance-1.0.jar
This is the code I've added to the xml configuration:
But on starting the server I'm getting this exception: