I am having a bit of an issue configuring my interceptors and was hoping someone might have figured this out.
I am using Spring 3 with annotated controllers, and everything is loading and functioning fine. Every controller gets intercepted by my two declared HandlerInterceptors. Here is my configuration:
I want to apply these two interceptors to every controller EXCEPT my HomePageController, but for the life of me I can't figure out how to do that.
<bean class="com.matt.MdcSetupInterceptor" />
<bean class="com.matt.AuthInterceptor" />
I have seen plenty of examples on the forum on how to setup interceptors that interceptor a single controller using the "mapping" attribute in the mvc:interceptors declaration, but none on how to exclude one.
Is there a way to reflect a "Not" in the mapping tag?
Thanks in advance for your help or for pointing me to a link that explains it.