jetty9配置contextPath

jetty9配置contextPath 說明:

目錄結構:

webapps

-------demo.war

-------demo.xml


demo.xml文件內容

 <?xml version="1.0"  encoding="ISO-8859-1"?>
 <!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd">
 <Configure class="org.eclipse.jetty.webapp.WebAppContext">
     <Set name="contextPath">/</Set>
     <Set name="war"><SystemProperty name="jetty.home" default="."/>/webapps/demo.war</Set>
 </Configure>


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章