球衣带有 Spring 3.0?

发布于 2024-08-20 04:12:58 字数 109 浏览 2 评论 0原文

我看到有些人正在使用带有 Spring 的 Jersey。在 Spring 3.0 中,现在可以使用注释直接在控制器中创建 RESTful API。为什么我应该考虑使用 Jersey w/ Spring?

I see some are using Jersey w/ Spring. With Spring 3.0 there are now annotations available to make RESTful APIs directly in a controller. Why should I consider using Jersey w/ Spring?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

从﹋此江山别 2024-08-27 04:12:58

Jersey 优点:

  • 附带规格JSR 311
  • JSR 311 的参考实现
  • RestletRESTeasy JSR 311 的其他实现是
  • 更好的工具(至少在 Netbeans 上),
  • 它与 Spring 和 Guice 集成

编辑

Spring MVC 和 JAX-RS 的(非常好的)比较

Jersey pros:

  • comes with specifications JSR 311
  • reference implementation for JSR 311
  • Restlet and RESTeasy are other implementations for JSR 311
  • better tooling (at least on Netbeans)
  • it is integrated with Spring and Guice

EDIT

A (very nice) Comparison of Spring MVC and JAX-RS

爱,才寂寞 2024-08-27 04:12:58

Spring 3 向后兼容,因此您可以使用 Jersey。

您得到的并不是将您的应用程序与专有 API 绑定。

Spring 3 is backwards compatible so you can use Jersey.

What you get is not tying your application to a propietary API.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文