Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/maven/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Maven 马文码头7号及;静态资源_Maven_Jetty_Static Resource - Fatal编程技术网

Maven 马文码头7号及;静态资源

Maven 马文码头7号及;静态资源,maven,jetty,static-resource,Maven,Jetty,Static Resource,我想改变我们的基础设施,从Jetty和快速应用程序开发中获益 很快,我想提供静态内容。我在Jetty文档中找到了这样的解释 <Configure class="org.mortbay.jetty.handler.ContextHandler"> <Set name="contextPath">/static</Set> <Set name="resourceBase">D:/LocalProjects/myproject/html/

我想改变我们的基础设施,从Jetty和快速应用程序开发中获益

很快,我想提供静态内容。我在Jetty文档中找到了这样的解释

<Configure class="org.mortbay.jetty.handler.ContextHandler">
    <Set name="contextPath">/static</Set>
    <Set name="resourceBase">D:/LocalProjects/myproject/html/static/
    </Set>
    <Call name="addHandler">
        <Arg>
            <New class="org.mortbay.jetty.handler.ResourceHandler"/>
        </Arg>
    </Call>
</Configure>                        

/静止的
D:/LocalProjects/myproject/html/static/
maven和上述配置的等价物是什么

谢谢


  <contextHandlers>
       <contextHandler implementation="org.eclipse.jetty.server.handler.ContextHandler">
           <contextPath>/static</contextPath>
           <resourceBase>D:/LocalProjects/myproject/html/static/</resourceBase>
           <handler implementation="org.eclipse.jetty.server.handler.ResourceHandler"/>
        </contextHandler>
  </contextHandlers>
/静止的 D:/LocalProjects/myproject/html/static/