Windown Server 2008配置tomcat9虚拟路径

1、用途

用于保存项目运产生的文件web

 

2、步骤

一、修改conf\下的web.xml

<!-- 找到listings将false改成true -->
        <init-param>
            <param-name>listings</param-name>
            <param-value>true</param-value>
        </init-param>

 

 

 

二、修改conf\下的server.xml

<!-- 在<Host name="localhost"  appBase="webapps" unpackWARs="true" autoDeploy="true"> 添加 -->
       <Context path="/tomcat_annex" docBase="D:\tomcat_annex" reloadable="true"/>

 

 

 

重启tomcat便可。tomcat

相关文章
相关标签/搜索