第 133 章 Spring RabbitMQ
Since Camel 3.8
支持生成者和消费者
Spring RabbitMQ 组件允许您使用 Spring RabbitMQ 客户端从 RabbitMQ 实例生成和使用消息。
133.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>
该版本通过以下方式使用 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>