锘??xml version="1.0" encoding="utf-8" standalone="yes"?>ga∨成人网,精东粉嫩av免费一区二区三区,国产亚洲精品美女久久久久久久久久http://www.aygfsteel.com/liuwenbo200285/category/54207.htmlzh-cnSun, 16 Mar 2014 04:39:25 GMTSun, 16 Mar 2014 04:39:25 GMT60鍦╦ava-web欏圭洰涓祵鍏etty錛屽揩閫熻繘琛岃皟璇曪紒http://www.aygfsteel.com/liuwenbo200285/articles/410594.html涔愰殢蹇冨姩涔愰殢蹇冨姩Tue, 04 Mar 2014 07:40:00 GMThttp://www.aygfsteel.com/liuwenbo200285/articles/410594.htmlhttp://www.aygfsteel.com/liuwenbo200285/comments/410594.htmlhttp://www.aygfsteel.com/liuwenbo200285/articles/410594.html#Feedback0http://www.aygfsteel.com/liuwenbo200285/comments/commentRss/410594.htmlhttp://www.aygfsteel.com/liuwenbo200285/services/trackbacks/410594.html        <dependency>
<groupId>org.eclipse.jetty</groupId>
<artifactId>jetty-webapp</artifactId>
<version>7.2.2.v20101205</version>
<optional>true</optional>
</dependency>
<dependency>
<groupId>org.mortbay.jetty</groupId>
<artifactId>jsp-2.1-glassfish</artifactId>
<version>2.1.v20100127</version>
</dependency>
       鍒涘緩涓€涓猨ava綾伙細
import org.eclipse.jetty.server.Server;
import org.eclipse.jetty.webapp.WebAppContext;
public class GameAdmin {

    public static void main(String[] args) {
        // TODO Auto-generated method stub
        try {
            Server server = buildNormalServer(8080, "/gameweb");
            server.start();
        } catch (Exception e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }
    
    /**
     * 鍒涘緩鐢ㄤ簬姝e父榪愯璋冭瘯鐨凧etty Server, 浠rc/main/webapp涓篧eb搴旂敤鐩綍.
     
*/
    public static Server buildNormalServer(int port, String contextPath) {
        Server server = new Server(port);
        WebAppContext webContext = new WebAppContext("src/main/webapp", contextPath);
        webContext.setClassLoader(Thread.currentThread().getContextClassLoader());
        server.setHandler(webContext);
        server.setStopAtShutdown(true);
        return server;
    }

}


]]>
主站蜘蛛池模板: 海门市| 察哈| 武陟县| 玉溪市| 福清市| 江陵县| 青浦区| 祁阳县| 锦屏县| 临漳县| 克山县| 谷城县| 精河县| 留坝县| 大荔县| 永仁县| 大埔县| 黔西县| 仙桃市| 武义县| 灯塔市| 新绛县| 海晏县| 大悟县| 涞源县| 柞水县| 永泰县| 霍城县| 余干县| 泾阳县| 马鞍山市| 子洲县| 邹平县| 景洪市| 晋城| 招远市| 高密市| 夏邑县| 麻江县| 波密县| 赫章县|