<Host name="域名或者localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Context path="/你的项目名" docBase="项目路径" debug="0" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log." suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
这是由于appBase去扫描一次,context的path又会去扫描一次。
如果有其它解决方案请留言
最后修改于 2019-05-24 11:36:59
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

