|-- Context Path --|-- Servlet Path -|--Path Info--|
http://www.myserver.com /mywebapp /helloServlet /hello
|-------- Request URI ----------------------------|
Context Path + servlet path + path info = request uri
在Jetty中默认的 Context Path 是 war 包的名称,例如 mywebapp.war. 如果想修改 Context Path ,可以在 war 包中 web.xml 同级别的目录中加入 jetty-web.xml 文件,路径为: webapp/WEB-INF/jetty-web.xml, 内容如下: