ServletContext and Spring MVC May 25, 2023 by Tarik Since interceptor is a bean, you can simply autowire it: @Autowired ServletContext context;