简体   繁体   English

没有web.xml和war文件的Jetty 9嵌入式模式

[英]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. 我已经使用Jetty 8的嵌入式模式来开发没有web.xml和war文件的Web应用程序。 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. 但是我真的不知道如何在Jetty 9中做同样的事情。似乎有些事情已经从Jetty 8变为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. 在这方面变化不大,码头8和码头9之间的主要变化在于底层的IO层。

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 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 http://www.eclipse.org/jetty/documentation/current/embedding-jetty.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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