12 January 2012

I wanted to monitor our Spring MVC application with Jamon. We rely on the use of the @Controller annotation so aspects seemed like the right way to go.

After some digging on the documentation I came up with the following aspect:

Now I just needed to enable autoproxying with

<aop:aspectj-autoproxy />

line in my application context file and all my controllers started showing in Jamon!



blog comments powered by Disqus