简体   繁体   English

RESTful web 服务框架与 Spring MVC REST 支持比较

[英]RESTful web services framework comparison with Spring MVC REST support

In one of our projects we are using the spring mvc.在我们的一个项目中,我们使用的是 spring mvc。 The spring mvc has inherent support for REST web services. spring mvc 具有对 REST web 服务的固有支持。 I am looking forward to some insight/suggestions on how does Springs mvc's REST support fare when compared with the other popular framework like RESTEasy, RESTlet,JAX-RS etc.与其他流行的框架(如 RESTEasy、RESTlet、JAX-RS 等)相比,我期待有关 Springs mvc 的 REST 支持票价的一些见解/建议。

The first big differentiator is that Restlet and RESTEasy both provide implementations of JAX-RS.第一个很大的区别是 Restlet 和 RESTEasy 都提供了 JAX-RS 的实现。 You can write JAX-RS code that either of those frameworks could run and not have to change anything.您可以编写这些框架中的任何一个都可以运行且无需更改任何内容的 JAX-RS 代码。 Spring MVC is a separate API that doesn't implement JAX-RS. Spring MVC 是一个单独的 API,它没有实现 JAX-RS。 It does provide most of the same functionality from what I've seen.它确实提供了与我所看到的大部分相同的功能。 Of course, Restlet also provides its own non-JAX-RS based API which is nice too.当然,Restlet 也提供了自己的基于非 JAX-RS 的 API,这也很好。

I found this seemingly thorough comparison of Spring MVC and JAX-RS at InfoQ that might interest you.我在 InfoQ 上发现了 Spring MVC 和 JAX-RS 的这个看似彻底的比较,你可能会感兴趣。 I would say, if you are already using Spring MVC and it meets your needs in the REST department, stick with it until you find a need to look for something else.我想说,如果您已经在使用 Spring MVC 并且它满足您在 REST 部门的需求,请坚持使用它,直到您发现需要寻找其他东西为止。

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

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