Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(10)
您可以查看 CXF JAX-RS 实现。有关其功能的完整列表,请查看 JAX-RS 的 CXF 网站。
该项目背后的社区似乎非常活跃(2013 年 7 月)。 CXF 邮件列表 中每天的消息数量就可以说明这一点。
You could take a look at the CXF JAX-RS implementation. For complete list of its features check the CXF web site for JAX-RS.
The community behind the project seems to be very active (July 2013). An indication of that is the number of messages per day in the CXF mailing lists.
我可以推荐 Apache wink,一个仍处于孵化模式的新框架,但非常成熟且高质量。
http://incubator.apache.org/wink/
它实现了 JAX-RS 规范,它既有客户又有客户用于 REST 开发的服务器框架。
Apache 是这个项目的后盾 - 这始终是一个好兆头(也是一个好的许可证 :-) )
我最喜欢这个框架的地方是与 Spring 的直观集成,如果您希望您的框架能够轻松配置和扩展,那么它非常有用。
I can recommend Apache wink, a new framework still in incubation mode, but very mature and high quality.
http://incubator.apache.org/wink/
It implements the JAX-RS specification, it has both client & server framework for REST development.
Apache is standing behind this project - that's always a good sign (and a good license :-) )
What I love most about this framework is the intuitive integration with Spring, it's very useful if you want your framework to be easily configured and extended.
更新:Xydra Restless 不再维护 +++ 如果您在 Goolge AppEngine 发布“预留实例”功能之前使用它们,您可能会考虑 Xydra Restless 功能很少,但加载速度很快。
UPDATE: Xydra Restless is not longer maintained +++ If your are using Goolge AppEngine before they release a "reserve instance" feature, you might consider Xydra Restless which has few features but loads fast.
我最喜欢的是 Spring MVC,两者都支持,客户端和服务器端......而且你也有Android支持=)
例如,你可以看到Spring Android的示例 这里
My favourite is Spring MVC, you have support for both, client and server side... And you have Android support too =)
For example, you can see a example of Spring Android here
Jersey 对两者来说都非常容易。要编写 Web 服务,您可以使用注释:
对于客户端:
Jersey is really easy for both. To write web services, you use annotations:
For a client:
Restlet 听起来应该提供您正在寻找的内容:
Restlet sounds like it should provide what you're looking for:
也可以看看dropwizard。
Take a look at dropwizard too.
Restlet 在其 2.0 版本中还支持客户端和服务器端的注释。 JAX-RS API 也作为扩展受到支持。
这是服务器端的一个简单示例:
在客户端:
有关更多文档,检查此页面。
Restlet also support annotations in its 2.0 version, both on the client and server-side. The JAX-RS API is also supported as an extension.
Here is a simple example for server-side:
On the client-side:
For further documentation, check this page.
JBoss 的新 RESTEasy 库。自首次推出以来,它似乎正在快速发展。我不知道这是否有好处;它在我的“查看”清单上。
There's JBoss' new RESTEasy library. It appears to be under rapid development since its initial launch. I've no idea if it's any good; it's on my 'check it out' list.
我个人没有使用过它,但与我合作的一些团队正在使用 Spring 3 MVC。 Spring 3 中的 REST:@MVC看起来是一篇很好的博客文章概述。 RESTful 功能包括“URI 模板”、“内容协商”、“HTTP 方法转换”、“ETag 支持”等。
编辑:另外,请参阅这个问题:谁能推荐一个基于MVC并支持REST的Java Web框架吗?
I haven't used it personally but some teams that I work with are using Spring 3 MVC. REST in Spring 3: @MVC looks like a good blog post overview. The RESTful features include "URI Templates", "Content Negotiation", "HTTP Method Conversion", "ETag support" and more.
Edit: Also, see this question: Can anyone recommend a Java web framework that is based on MVC and supports REST ?