搜索

第 49 章 平台 HTTP

download PDF

从 Camel 3.0 开始

仅支持消费者

平台 HTTP 用于允许 Camel 使用运行时中的现有 HTTP 服务器。例如,在 Spring Boot、Quarkus 或者其他运行时上运行 Camel 时。

将以下依赖项添加到此组件的 pom.xml 中:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-platform-http</artifactId>
    <version>3.20.1.redhat-00050</version>
    <!-- use the same version as your Camel core version -->
</dependency>

49.1. 平台 HTTP 供应商

要使用平台 HTTP,需要在 classpath 上提供供应商(引擎)。这样做的目的是为不同运行时(如 Quarkus、PolernetX 或 Spring Boot)具有驱动程序。

目前,camel-platform-http-vertx 仅支持 Quarkus 和 VertX。此 JAR 必须在 classpath 上,否则无法使用平台 HTTP 组件,并且在启动时会抛出异常。

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-platform-http-vertx</artifactId>
    <version>3.20.1.redhat-00050</version>
    <!-- use the same version as your Camel core version -->
</dependency>
Red Hat logoGithubRedditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

通过我们的产品和服务,以及可以信赖的内容,帮助红帽用户创新并实现他们的目标。

让开源更具包容性

红帽致力于替换我们的代码、文档和 Web 属性中存在问题的语言。欲了解更多详情,请参阅红帽博客.

關於紅帽

我们提供强化的解决方案,使企业能够更轻松地跨平台和环境(从核心数据中心到网络边缘)工作。

© 2024 Red Hat, Inc.