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

来源:互联网 发布:淘宝邮箱格式怎么写的 编辑:程序博客网 时间:2024/06/05 01:56

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


原创粉丝点击