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;
1.4m articles
1.4m replys
5 comments
57.0k users