SpringMVC监听器

WebAppRootListener WebAppRootListener的作用就是监听web.xml中的配置<context-param> 下<param-name>webAppRootKey</param-name>的值 有如下的使用场景: web项目上传下载时,获取项目根路径常用的方式是:1、Servlet的request.getRealPath(“/”);2、request.getServ
相关文章
相关标签/搜索