1. 程式人生 > >通過tomcat檔案配置web專案

通過tomcat檔案配置web專案

1、tomcat7.x  -->  conf  -->  server.xml

2、增加專案路徑(黑體字所示)

      <Host name="localhost"  appBase="webapps"             unpackWARs="true" autoDeploy="true">               <Context path="/HJWebframe" docBase="C:/workspace/HJWebframe/WebRoot" debug="0" privileged="true" reloadable="true" />

        <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>

3、startUp啟動