Maven 马文码头7号及;静态资源
我想改变我们的基础设施,从Jetty和快速应用程序开发中获益 很快,我想提供静态内容。我在Jetty文档中找到了这样的解释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/
<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/