Java Spring REST WS:jersey vs resteasy vs restlet vs apache cxf vs Spring WS

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/29186444/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-11 07:32:00  来源:igfitidea点击:

Spring REST WS : jersey vs resteasy vs restlet vs apache cxf vs Spring WS

javaspringrestjax-rsspring-ws

提问by Om.

I am planning to build a ResT full web service using spring 4 and java 7 for a complex highly performance oriented application. After researching i have found following options.

我计划使用 spring 4 和 java 7 为复杂的面向高性能的应用程序构建一个 ResT 完整的 Web 服务。经过研究,我发现了以下选项。

  1. Spring REST WS (using Hymanson). Example
  2. Spring + Jersey. Example
  3. Spring + Resteasy. Example
  4. Spring + Apache CFX. Example
  5. Spring + Restlet. Example
  1. Spring REST WS(使用 Hymanson)。例子
  2. 春天 + 泽西岛。例子
  3. 春天+休息。例子
  4. Spring + Apache CFX。例子
  5. 弹簧 + Restlet。例子

My choice was Spring WS but Spring MVC REST is not JAX-RS compliant (if i am not wrong). Source -Spring MVC REST is not JAX-RS compliant. Does it matter?

我的选择是 Spring WS 但 Spring MVC REST 不符合 JAX-RS(如果我没有错的话)。来源 - Spring MVC REST 不符合 JAX-RS。有关系吗?

Question:

题:

  • Does it matter using it as non JAX-RS compliant??
  • Do i need to take additional steps to make it JAX-RS compliant ??
  • Security point of view what are the steps i need to take care ?
  • Any best prectices ?
  • 将其用作非 JAX-RS 兼容是否重要?
  • 我是否需要采取额外的步骤使其符合 JAX-RS 标准??
  • 从安全角度来看,我需要注意哪些步骤?
  • 有什么最好的方法吗?

回答by Angelo Immediata

Well I guess it always depends on our needs and how we feel we can manage changes and new frameworks releases Personally I'd use the first solution Spring REST WS (using Hymanson) above all because it's totally integrated in spring application framework and you must not add (and sometimes fight) with third parties libs; and believe me this is really a good thing

好吧,我想这总是取决于我们的需求以及我们如何管理变更和新框架发布就个人而言,我会使用第一个解决方案 Spring REST WS(使用 Hymanson),因为它完全集成在 spring 应用程序框架中,您不能添加(有时与第三方库战斗);相信我,这真的是一件好事

Morever I don't see any great advantage in adding other JAX-WS implementation except to increase the project complexity

此外,除了增加项目复杂性之外,我认为添加其他 JAX-WS 实现没有任何好处

And the last....by adding third party libs you not nly have to know good Spring, but also the other libraries you use and not all the developers are able and can learn new technologies....at least this is my opinion and my experience :)

最后....通过添加第三方库,您不仅要了解好的 Spring,还要了解您使用的其他库,并不是所有的开发人员都能够并且可以学习新技术....至少这是我的意见和我的经验:)