tomcat配置变态版,路径war包名多余

1:配置server.xml:

 <Host name="localhost"  appBase="webapps"
            unpackWARs="true" autoDeploy="true">

<Context path="" docBase="/home/vfomp/apache-tomcat-8.5.24/webapps/jsfund"  debug="0" reloadable="true" />

./startup.sh

先将war解压缩

然后

./shutdown.sh

然后替换

 <Host name="localhost"  appBase="jsfund"
            unpackWARs="true" autoDeploy="true">

<Context path="" docBase="/home/vfomp/apache-tomcat-8.5.24/webapps/jsfund"  debug="0" reloadable="true" />

./startup.sh

最终访问

去掉了war包名可以







猜你喜欢

转载自blog.csdn.net/ssllkkyyaa/article/details/80496567