319.10. Spring Cloud Netflix
从 Camel 2.19 开始提供
Spring Cloud Netflix 组件桥接 Camel Cloud 和 Spring Cloud Netflix,因此您可以利用 Spring Cloud Netflix 服务发现和负载均衡功能(Camel Service Discovery 实现),作为 Spring Cloud Netflix 的 Ribbon 负载 balabncer 的 ServerList 源。
Maven 用户需要将以下依赖项添加到其 pom.xml
中,才能使用此组件:
camel-spring-cloud-netflix
jar 附带 spring.factories
文件,因此当您将依赖项添加到 classpath 中时,Spring Boot 将自动为您提供自动配置 Camel。
您可以使用以下属性禁用 Camel Spring Cloud Netflix:
Enable/Disable the whole integration, default true Enable/Disable the integration with Ribbon, default true
# Enable/Disable the whole integration, default true
camel.cloud.netflix = true
# Enable/Disable the integration with Ribbon, default true
camel.cloud.netflix.ribbon = true