Spring Rest Controller vs Camel rest servlet in micro services ---有什么区别,camel还有其他adv吗? [英] Spring Rest Controller vs Camel rest servlet in micro services --- What's the difference , is camel have any other adv?

查看:32
本文介绍了Spring Rest Controller vs Camel rest servlet in micro services ---有什么区别,camel还有其他adv吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我之前的应用程序中,我使用 spring rest 控制器公开了 rest api.

In my previous application, i have exposed rest api using spring rest controllers.

现在我将在他们使用过的 spring boot 微服务中工作,camel rest 服务.

Now i'm going to work in spring boot microservice where they have used , camel rest services.

与弹簧休息相比,骆驼休息有什么好处吗?

Is there any adv of camel rest compared with spring rest?

推荐答案

Apache Camel 提供了一个 REST 风格的 DSL,可以与 Java 或XML.目的是允许最终用户使用带有动词的 REST 样式,例如 get、post、delete 等.

Apache Camel offers a REST styled DSL which can be used with Java or XML. The intention is to allow end users to define REST services using a REST style with verbs such as get, post, delete etc.

来源 https://camel.apache.org/manual/latest/rest-dsl.html

Camel REST 端点的想法是通过 REST 调用启动 e Camel Route.

The idea of Camel REST endpoints is to start e Camel Route with a REST Call.

如果您不需要 Camel Routes,那么使用 Camel REST 是没有意义的.

If you don't need Camel Routes it doesn't make sense to use Camel REST.

另一方面,Spring MVC 提供了定义 REST API 的能力,这些 API 将使用其他 Spring 组件来完成用例.

On the other side Spring MVC provides the ability to define REST APIs that will use other Spring Components to fullfil use case.

这篇关于Spring Rest Controller vs Camel rest servlet in micro services ---有什么区别,camel还有其他adv吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆