I'm converting an old web application to Spring framework and I'm using annotated controllers.
In my Spring configuration xml file, I added this definition :
copied directly from a Spring tutorial.
Now, I'm looking for a way to add an interceptor to a certain set of controllers, and not to every annotated controller, but I can't find any example or documentation explaining how to do it.
I need this interceptor to be run only for some controllers (or for some urls, which is basically the same).
I think I need to configure two different handlerMapping beans, first with interceptors and the last without, and map urls on an handler or the other.
Could anyone please share a bit of light on this subject ?
Well, actually I could, but I hoped there was a standard way to accomplish this task with core Spring configuration, without aspect, advice or pointcut (which I don't even know since I never used them)