318.7. Spring Cloud

可作为 Camel 2.19 提供

Spring Cloud 组件

Maven 用户需要将以下依赖关系添加到其 pom.xml 中,才能使用此组件:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-cloud</artifactId>
    <version>${camel.version}</version> <!-- use the same version as your Camel core version -->
</dependency>

Camel -spring-cloud jar 与 spring.factories 文件一同推出,因此当将该依赖关系添加到类路径后,Spring Boot 会自动为您自动配置 Camel。

318.7.1. Camel Spring Cloud Starter

可作为 Camel 2.19 提供

要使用初学者,请在 spring boot pom.xml 文件中添加以下内容:

<dependency>
    <groupId>org.apache.camel</groupId>
    <artifactId>camel-spring-cloud-starter</artifactId>
    <version>${camel.version}</version> <!-- use the same version as your Camel core version -->
</dependency>