EmbededJettywithJSP
Simple Jetty server with JSP supported.
pom.xml
-
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();
- }
-
-
org.eclipse.jetty
-
apache-jsp
-
9.4.2.v20170220
-
-
-
org.eclipse.jetty
-
jetty-annotations
-
9.4.2.v20170220
当前题目:EmbededJettywithJSP
本文来源:http://scyingshan.cn/article/jhddos.html