Tomcat自定义源码路径和编译并运行

2/10/2017来源:ASP.NET技巧人气:465

修改appbase为项目源码的项目路径 path为访问路径,可为空 docbase为项目编译后路径 <Host name="localhost" path="" appBase="D:\myeclipsePRoject\dcArchk" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="D:\myeclipseproject\dcArchk\WebRoot" reloadable="true"></Context> <!-- SingleSignOn valve, share authentication between web applications Documentation at: /docs/config/valve.html --> <!-- <Valve className="org.apache.catalina.authenticator.SingleSignOn" /> --> <!-- access log processes all example. Documentation at: /docs/config/valve.html Note: The pattern used is equivalent to using pattern="common" --> <Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t &quot;%r&quot; %s %b" /> </Host>