本文介绍了带有 Spring 3.0 的球衣?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我看到有些人正在使用带有 Spring 的 Jersey.在 Spring 3.0 中,现在可以使用注释直接在控制器中创建 RESTful API.为什么我应该考虑使用带有 Spring 的 Jersey?
解决方案
Jersey 优点:
- 带有规范JSR 311
- JSR 311 的参考实现
- Restlet 和 RESTeasy 是 JSR 311 的其他实现
- 更好的工具(至少在 Netbeans 上)
- 它与 Spring 和 Guice 集成
编辑
Spring MVC 和 JAX-RS 的一个(非常好的)比较p>
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?
解决方案
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
这篇关于带有 Spring 3.0 的球衣?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!