<Context path="/struts2" docBase="D:\strustworkspace\struts2\WebRoot" reloadable="true"/>配置问题
来源:互联网 发布:npm run windows 编辑:程序博客网 时间:2024/05/16 23:05
1.什么是虚拟路径,在这个上下文里,为什么要设定虚拟路径。不设定不行吗?
2.docBase是实际路径吧?
3.reloadable="true" 这个是什么意思?
1 程序可以放到其他目录下,在这里配置上之后,url中的路径就是path内容,服务器会根据这个配置区相应的docBase去找
2 是的
3 reloadable="true" 看一下tomcat的doc
Set to true if you want Catalina to monitor classes in /WEB-INF/classes/ and /WEB-INF/lib for changes, and automatically reload the web application if a change is detected. This feature is very useful during application development, but it requires significant runtime overhead and is not recommended for use on deployed production applications. That's why the default setting for this attribute is false. You can use the Manager web application, however, to trigger reloads of deployed applications on demand.
翻译过来大概是:如果你想监视/WEB-INF/classes/和/WEB-INF/lib的变动,如果变动则自动重新载入web应用程序(否则tomcat无法检测到你的改动,只有重启tomcat才能使你的改动生效)。在开发阶段这个特征非常有用,但是它需要很大的开销,并且在产品发布后不建议被设置.这就是为什么默认设置是false ......
- <Context path="/struts2" docBase="D:\strustworkspace\struts2\WebRoot" reloadable="true"/>配置问题
- <Context path="/ll" docBase="D:\tomcat部署\WebRoot" reloadable="true" debug="0" />各个参数的含义
- <Context docBase="D:/test" path="/Asset" reloadable="true"/>
- <Context path="" docBase="reports" debug="0" reloadable="true"/> 中 debug 参数解释
- <Context path=”/Welcome” docBase=”c:\hello\hello” reloadable=”true” /> 每个属性含义
- <Context reloadable="true">
- path="/"是什么意思 <Context path="/" docBase="e:\\project\\j2ee\\web" debug="0" reloadable="false" />
- 【2011/2/28】关于Tomcat的conf/server.xml文件中上面配置 context的reloadable属性的时候,区分path和docBase二者的意义
- 超越reloadable=true, 在Tomcat运行时动态重载
- grails配置tomcat-->server.xml Context>path>docBase
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题 .
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 关于Struts2.1.6中配置 constant name="struts.devMode" value="true" 在tomcat启动时报错的问题
- 超越reloadable=true, 在Tomcat运行时动态重载类(version 5.0.28)
- Tomcat的Context配置虚拟目录问题,path=""和path="/"
- CentOS6系统上Yii/Yii2/Nginx/PHP-FPM配置实例
- POJ 1664 放苹果
- struts2请求基本简要流程
- PAT1071(字符串)
- 结构体和类的区别
- <Context path="/struts2" docBase="D:\strustworkspace\struts2\WebRoot" reloadable="true"/>配置问题
- 12.如何自学Struts2发送邮件和验证补充[视频]
- 迭代器和算法
- static/static const 的初始化
- WCF服务创建实例说明
- Xamarin Getting Started系列翻译一
- JAVA RMI远程方法调用简单实例
- python笔记7--常用的内建模块
- HDU 2196解题报告