jetty9配置contextPath「终于解决」

(34) 2023-03-27 08:14

Hi,大家好,我是编程小6,很荣幸遇见你,我把这些年在开发过程中遇到的问题或想法写出来,今天说一说jetty9配置contextPath「终于解决」,希望能够帮助你!!!。
jetty9配置contextPath「终于解决」_https://bianchenghao6.com/blog__第1张

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>

上一篇

已是最后文章

下一篇

已是最新文章

发表回复