首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

jetty8 平添静态文件目录

2013-08-13 
jetty8 添加静态文件目录contexts下添加mydir.xml:?xml version1.0encodingISO-8859-1?!DOCTYPE

jetty8 添加静态文件目录
contexts下添加mydir.xml:

<?xml version="1.0"  encoding="ISO-8859-1"?><!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"><Configure name="debug"><Arg>Configure mydir.xml</Arg></Call>  <Set name="contextPath">/mydir</Set>  <Set name="resourceBase">file:/F:/studio/static</Set>  <Set name="handler">    <New class="org.eclipse.jetty.server.handler.ResourceHandler">      <Set name="welcomeFiles">        <Array type="String">          <Item>index.html</Item>        </Array>      </Set>      <!-- <Set name="cacheControl">max-age=3600,public</Set> -->  <Set name="directoriesListed">true</Set>    </New>  </Set></Configure>

热点排行