修改文件:Tomcat 8.5\conf\server.xml
- docBase:本地文件路径(注意斜杠方向)
- path网页路径(值:/a 对应: http://localhost:8080/a/)
<Context path="/a" docBase="G:\webapp" crossContext="true" reloadable="true"/>
修改文件 Tomcat 8.5\conf\server.xml
<init-param> <param-name>listings</param-name> <param-value>true</param-value> </init-param>
效果:
标签:xml,web,8.5,Tomcat,tomcat,文件夹,conf From: https://www.cnblogs.com/u1w2/p/16594684.html