ServletContext and Spring MVC

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

@Autowired
ServletContext context;

Leave a Comment