Tomcat 配置Context
<Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"> <Context path="/a" docBase="E:\Projects\MyEclipse6_6\TestFirst\WebRoot" 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" resolveHosts="false"/> </Host> </Engine> </Service> </Server>