I want to define multiple mvc:mappings for a HandlerInterceptor. I tried doing this:
This doesn't seem to work except for the first mapping pattern. What's the proper way to do this? Or even better: I only need to exclude /static/* URLs, so can I define an exclude pattern instead?Code:<mvc:interceptors> <mvc:interceptor> <mvc:mapping path="/home*"/> <mvc:mapping path="/path1/*"/> <mvc:mapping path="/path2/*"/> <mvc:mapping path="/path3/*"/> <bean class="net.sandbox.handlerinterceptors.SessionBeanInserter" /> </mvc:interceptor> </mvc:interceptors>
Edit: solved... I need to use ** to match subdirs.


Reply With Quote