We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 9 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
尝试 Grizzly,它是 Jersey 的独立部分(JAX-RS 实现)。
Try Grizzly, which is the standalone part of Jersey (JAX-RS implementation).
可能的替代品
简单,但不太简单
话虽如此,除非您是确实受到限制,为什么不使用 Tomcat 甚至 GlassFish 适合您吗?
如果复杂性是一个问题,那么也许您应该首先从 Tomcat 开始,然后稍后看看如何使用 Jetty(或其他)以及它如何满足您的目标。 Tomcat 并不是那么重量级,至少您将有大量文档和示例可供查看。
更新:正如您在评论中提到的,您需要 JAX-RS 支持,Jersey 确实是一个不错的选择。查看 Vogella 关于 使用 Jersey 与 Java 进行 REST 以获得良好的启动效果。
Possible Alternatives
Simple, But Not Too Simple
That being said, except if you are really constrained, why wouldn't a minimalist config of Tomcat or even GlassFish work for you?
If complexity is an issue, then maybe you should start with Tomcat first and then see how Jetty (or others) could be used and how it would fit your goals later. Tomcat is not that heavyweight, and at least you'll have plenty of documentation and examples to look at.
Update: As you mention in the comment that you need JAX-RS support, Jersey is indeed a good option. Have a look at Vogella's article on REST with Java using Jersey for a good ramp-up.
你知道嵌入jetty吗?这不是将您的应用程序部署在 jetty 中,而是将 jetty 嵌入到您的应用程序中。
我以前用过而且非常简单。这里有一些文档:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty
Do you know about embedding jetty? This is instead of deploying your app in jetty, embedding jetty in your app.
I used before and it's quite easy. Here's some documentation:
http://wiki.eclipse.org/Jetty/Tutorial/Embedding_Jetty
JBoss(现在称为 Wildfly)和 Tomcat 是 Jetty 的良好替代品。本文讨论了两者之间的一些差异。 http://www.futurehosting.com/jboss- vs-tomcat-choosing-a-java-application-server/
JBoss (which is now called Wildfly) and Tomcat are good alternatives to Jetty. This article talks about some of the differences between the two. http://www.futurehosting.com/jboss-vs-tomcat-choosing-a-java-application-server/