ServletContext and Spring MVC

Since interceptor is a bean, you can simply autowire it:

@Autowired
ServletContext context;

Please look at this example

http://www.vaannila.com/spring/spring-interceptor.html

and then request.getSession().getServletContext()