EmbededJettywithJSP-创新互联
Simp
网站题目:EmbededJettywithJSP-创新互联
当前路径:http://pwwzsj.com/article/ccpeej.html
- public static void main(String[] args) throws Exception {
- Server server = new Server(8082);
-
- Configuration.ClassList classlist = Configuration.ClassList.setServerDefault(server);
- classlist.addBefore("org.eclipse.jetty.webapp.JettyWebXmlConfiguration",
- "org.eclipse.jetty.annotations.AnnotationConfiguration" );
-
- WebAppContext context = new WebAppContext("src/main/webapp", "/");
- server.setHandler(context);
- server.start();
- }
网站题目:EmbededJettywithJSP-创新互联
当前路径:http://pwwzsj.com/article/ccpeej.html