web.xml中使用webAppRootKey
来源:互联网 发布:管家婆软件官网 编辑:程序博客网 时间:2024/06/05 11:12
web.xml中使用webAppRootKey
1.web.xml配置
<context-param> <param-name>webAppRootKey</param-name> <param-value>webapp.root</param-value></context-param>
“webapp.root”这个字符串可以随便写任何字符串。如果不配置默认值是”webapp.root”。
可以用System.getProperty(“webapp.root”)来动态获项目的运行路径。
一般返回结果例如:/usr/local/tomcat6/webapps/项目名。
2、Spring通过 org.springframework.web.util.WebAppRootListener 这个监听器来加入项目路径。但是如果在web.xml中已经配置了 org.springframework.web.util.Log4jConfigListener
这个监听器,则不需要配置WebAppRootListener了。因为Log4jConfigListener已经包含了WebAppRootListener的功能。
0 0
- web.xml中使用webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- web.xml中webAppRootKey
- 10039---web.xml中webAppRootKey
- python 属性
- mysql中如何更新一个字段的值为它本身的值连接上一个字符串
- 二叉搜索树的后序遍历
- 自定义简单的转场动画
- window 环境安装composer和yii
- web.xml中使用webAppRootKey
- c++的虚构函数
- 人人都能做推送
- java Socket(多线程 一对多)
- Hadoop小兵笔记【三】利用Eclipse将wordcount打包成可以运行在hadoop上的jar包
- opencv3.0 "ACCESS_MASK" ambiguous symbol
- xml worker下载地址
- 小胖说事7------iOS 二维码扫描
- 电易邮件推广系统