tomcat conf目录下的server.xml appBase 配置上下文Context
设置:autoDeploy="false" deployOnStartup="false",
原来:
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true">
修改后:
<Host name="localhost" appBase="" unpackWARs="true" autoDeploy="false" deployOnStartup="false">
<Context path="" docBase="webapps/rboat" reloadable="true"/>