Windown Server 2008 virtual path configuration tomcat9

First, use

To save the project file generated by transport

 

Second, step

1, modify the conf \ in web.xml

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

 

 

 

2, modify the conf \ under server.xml

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

 

 

 

Restart tomcat can be.

 

Guess you like

Origin www.cnblogs.com/HuangJie-sol/p/11645669.html