您的位置:首页 > 运维架构 > Tomcat

Tomcat与Jetty插件 配置根路径指定项目

2013-04-16 20:58 459 查看
Tomcat

config/service.xml

<Host name="localhost"  appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<Context  path=""  docBase="yourappname"  debug="0" reloadable="true"/>
</Host>


Jetty

eclipse run configurations 选jetty(前提是要有Jetty插件 项目目录WebRoot或者WebContent)

如下图设置:





Context设置为/ 平常设置如zftmall项目名

Jetty插件 http://run-jetty-run.googlecode.com/svn/trunk/updatesite
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: