質問

私たちのインフラを変更して、桟橋や迅速なアプリケーション開発の恩恵を受けるために私たちのインフラを変更したいです。

静的コンテンツを提供したいと思います。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>                        
.

上記の構成と同等のメーベンは何ですか?

ありがとう

役に立ちましたか?

解決

  <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>
ライセンス: CC-BY-SA帰属
所属していません StackOverflow
scroll top