美文网首页
tomcat中添加静态文件映射

tomcat中添加静态文件映射

作者: I_Gisvity | 来源:发表于2019-06-05 08:21 被阅读0次

    tomcat中添加静态文件映射

    <!-- 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" />
      
    
      <!-- 增加的静态资源映射配置 -->
      <Context path="/RecordFile" docBase="/home/lings/recordings" reloadable="true" crossContext="true"></Context>
    
    </Host>
    
    image.png

    相关文章

      网友评论

          本文标题:tomcat中添加静态文件映射

          本文链接:https://www.haomeiwen.com/subject/tzzdxctx.html