简体   繁体   中英

Jetty 9 embedded mode without web.xml and war file

I have used Jetty 8 in its embedded mode to develop a web application without a web.xml and a war file. However I don't really know how to do the same in Jetty 9. It seems that some things have changed in from Jetty 8 to Jetty9. Can someone point me to waht to do?

Thank you.

Little has changed in that regard, the primary changes between jetty 8 and jetty 9 were in the underlying IO layers.

There are many embedded examples here:

http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/tree/examples/embedded/src/main/java/org/eclipse/jetty/embedded

And the documentation here:

http://www.eclipse.org/jetty/documentation/current/embedding-jetty.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM