• 配置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也指向你的站点中。

  • 相关阅读:
    【JAVA】BitSet的源码研究
    【JAVA】大整数数据量排序
    三层架构的DCOM配置
    .NET+COM+组件注册方法
    开博感言
    about Cache
    代码HTML
    取远程用户IP地址
    ShowModalDialog页面传值
    about char变量
  • 原文地址:https://www.cnblogs.com/hark0623/p/5897026.html
Copyright © 2020-2023  润新知