首页 > 代码库 > 配置tomcat下war包可以自压缩

配置tomcat下war包可以自压缩

      <Host name="localhost"  appBase="/home/hark/web"            unpackWARs="true" autoDeploy="true">        <!-- 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 "%r" %s %b" resolveHosts="false"/>        <Context path="" docBase="/home/hark/web" reloadable="true" crossContext="true"/>      </Host>

之前配置 tomcat后,发现部署war包后不会进行解压缩,原因是因为我只配置了Context节点的docBase,应该把Host节点的appBase也指向你的站点中。

 

配置tomcat下war包可以自压缩