第 126 章 Spring RabbitMQ


从 Camel 3.8 开始

支持生成者和消费者

Spring RabbitMQ 组件允许您使用 Spring RabbitMQ 客户端从 RabbitMQ 实例生成和使用消息。

126.1. 依赖项

当在 Red Hat build of Camel Spring Boot 中使用 spring-rabbitmq 时,使用以下 Maven 依赖项来启用对自动配置的支持:

<dependency>
  <groupId>org.apache.camel.springboot</groupId>
  <artifactId>camel-spring-rabbitmq-starter</artifactId>
</dependency>
Copy to Clipboard Toggle word wrap

版本使用 BOM 以下列方式指定:

<dependencyManagement>
        <dependencies>
            <dependency>
                <groupId>com.redhat.camel.springboot.platform</groupId>
                <artifactId>camel-spring-boot-bom</artifactId>
                <version>${camel-spring-boot-version}</version>
                <type>pom</type>
                <scope>import</scope>
            </dependency>
        </dependencies>
    </dependencyManagement>
Copy to Clipboard Toggle word wrap
返回顶部
Red Hat logoGithubredditYoutubeTwitter

学习

尝试、购买和销售

社区

关于红帽文档

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

让开源更具包容性

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

關於紅帽

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

Theme

© 2025 Red Hat