java项目部署到tomcat服务器如何去掉工程名web服务器有关
在C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\server.xml中的Host内添加Context元素
docBase="项目地址,也可以用相对路径" 下头的SelectLhsoso 是我的工程名
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true"
xmlValidation="false" xmlNamespaceAware="false">
<!-- SingleSignOn valve, share authentication between web applications
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.authenticator.SingleSignOn" />
-->
<!-- Access log processes all example.
Documentation at: /docs/config/valve.html -->
<!--
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt" pattern="common" resolveHosts="false"/>
-->
<Context docBase="C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\SelectLhsoso " path="" />
</Host>
1 楼 zfms 2012-03-23 好像没管用呢?