I am trying to configure my new annotation based controllers to use my HandlerInterceptor which controls security. Basically the interceptor checks for a security header from RSA and if it doesnt find it the user is not logged in and it passes them to a login controller.
However I do not want the interceptor to intercept every controller, in this example the login controller. In Spring 2.0 I was able to define which controllers were intercepted using SimpleUrlHandlerMapping. However I have found no such feature in Spring 2.5 because DefaultAnnotationHandlerMapping intercepts every controller regardless . I tried a Spring plugin written by Scott Murphy which attemped to fix this issue and allows you to specify what is intercepted but it just throws 404 errors for the methods that are not intercepted. Any example code or suggestions would be much apprecaited. I have never used aspects for security so If that is my only solution could you please provide some example code. Thanks in advance.