Is it possible to wire a Spring MVC Interceptor using annotations?

As far as I know, there are no ways to configure Spring MVC interceptors without XML at all.

As far as I know, there are no ways to configure Spring MVC interceptors without XML at all. However, there are some simplifications with mvc namespace in the latest versions of Spring 3.0. X (not Spring 3.0.0!): See also: MVC Simplifications in Spring 3.0.

Good answer. Is it possible to create interceptor that will handle exceptions? – fastcodejava Jul 19 at 4:57 @fastcodejava: No.

For handling exceptions you can useHandlerExceptionResolvers. – axtavt Jul 19 at 8:39.

I don't know about spring-AOP but if you're using AspectJ via Spring you can use @Aspect, @Pointcut, @Advise and more... there's also a nice article on howto use these annotation with Spring AOP here: java-x.blogspot.com/2009/07/spring-aop-w....

Thanks but we are currently not using AspectJ as far as I know. I also want to avoid using aspects if I can. – James McMahon Dec 8 '10 at 16:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions