flybywire
flybywire

Reputation: 273452

Spring MVC 3.0: how do I define an interceptor with annotations?

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.

Upvotes: 3

Views: 1772

Answers (1)

skaffman
skaffman

Reputation: 403451

You can't. Hopefully we'll get that in 3.1. Until then, we have to use the HandlerInterceptor interface.

Upvotes: 3

Related Questions