微服务中的Spring Rest Controller与Camel rest servlet ---有什么区别,骆驼还有其他副词吗? [英] Spring Rest Controller vs Camel rest servlet in micro services --- What's the difference , is camel have any other adv?

查看:218
本文介绍了微服务中的Spring Rest Controller与Camel rest servlet ---有什么区别,骆驼还有其他副词吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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

现在,我将在他们使用的Spring Boot微服务(骆驼休息服务)中工作.

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或Java一起使用. XML.目的是允许最终用户使用以下方法定义REST服务: 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 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与Camel rest servlet ---有什么区别,骆驼还有其他副词吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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