20309 发表于 2017-2-27 06:54:38

在jetty中以目录形式发布工程

工作的jetty版本 :jetty-6.1.24
1、在contexts目录中添加文件比如 oa.xml
2、在oa.xml中添加如下内容:
   
<?xml version="1.0"encoding="UTF-8"?>
<!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd">
<!--
Configure a custom context for the javadoc.
This context contains only a ServletHandler with a default servlet
to serve static html files and images.
-->
<Configure class="org.mortbay.jetty.webapp.WebAppContext">
<Set name="contextPath">/oa</Set>
<Set name="resourceBase">c:/projects/oa/webapp</Set>
</Configure>
页: [1]
查看完整版本: 在jetty中以目录形式发布工程