How can I get the ServletContext inside an Interceptor in Spring MVC 3?
Since interceptor is a bean, you can simply autowire it:
@Autowired ServletContext context;
2.1m questions
2.1m answers
60 comments
57.0k users