ServletContext和Spring MVC(ServletContext and Spring MVC)
如何在Spring MVC 3中的Interceptor中获取ServletContext?
How can I get the ServletContext inside an Interceptor in Spring MVC 3?
最满意答案
因为拦截器是一个bean,你可以简单地自动连接它:
@Autowired ServletContext context;Since interceptor is a bean, you can simply autowire it:
@Autowired ServletContext context;更多推荐
发布评论