Jetbrains全系列IDE使用 1年只要46元 售后保障 童叟无欺
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>
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/192444.html原文链接:https://javaforall.net
