标签:tom class valve host pat directory ali local 访问
修改tomcat中conf文件夹下的server.xml文件,在
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
下面加一行:
<Context path="/访问的路径名" docBase=“文件或图片所在的绝对路径" reloadable=“true"></Context>
同时,在IDEA中,找到”Deploy applications configured in Tomcat instance”,前面打勾。
标签:tom class valve host pat directory ali local 访问
原文地址:https://www.cnblogs.com/fredkeke/p/10082190.html