I am developing an app with Spring MVC (3.0).
I defined some controllers with annotations, how can I define an intereceptor with annotations too.
I am developing an app with Spring MVC (3.0).
I defined some controllers with annotations, how can I define an intereceptor with annotations too.
You can't. Hopefully we'll get that in 3.1. Until then, we have to use the HandlerInterceptor
interface.