Tomcat中手工设置发布目录
在[TOMCAT安装目录]\conf\Catalina\localhost下有一个manager.xml,内容如下:
<!--
Context configuration file for the Tomcat Manager Web App
$Id: manager.xml 303123 2004-08-26 17:03:35Z remm $
-->
<Context docBase="${catalina.home}/server/webapps/manager"
privileged="true" antiResourceLocking="false" antiJARLocking="false">
<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
</Context>
复制成另外一个文件,名字可以任意如,你改为test.xml,不过这个名字就是你访问的路径了,内容改为如下:
<Context docBase="你自己程序的完整路径"
privileged="true" antiResourceLocking="false" antiJARLocking="false">
</Context>
<!--
Context configuration file for the Tomcat Manager Web App
$Id: manager.xml 303123 2004-08-26 17:03:35Z remm $
-->
<Context docBase="${catalina.home}/server/webapps/manager"
privileged="true" antiResourceLocking="false" antiJARLocking="false">
<!-- Link to the user database we will get roles from -->
<ResourceLink name="users" global="UserDatabase"
type="org.apache.catalina.UserDatabase"/>
</Context>
复制成另外一个文件,名字可以任意如,你改为test.xml,不过这个名字就是你访问的路径了,内容改为如下:
<Context docBase="你自己程序的完整路径"
privileged="true" antiResourceLocking="false" antiJARLocking="false">
</Context>