使用 Spring Boot 1.5.1 在 Camden.SR5 中配置 Spring Cloud Stream [英] Configuring Spring Cloud Stream in Camden.SR5 with Spring boot 1.5.1

查看:38
本文介绍了使用 Spring Boot 1.5.1 在 Camden.SR5 中配置 Spring Cloud Stream的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,感谢 Spring 团队为推动这项工作所做的所有工作!

First off, thanks to the Spring team for all their work pushing this work forward!

现在Camden.SR5正式版了,我有一些问题在使用Spring Boot 1.5.1时如何正确配置spring cloud stream kafka binder.

Now that Camden.SR5 is official, I have some questions on how to correctly configure the spring cloud stream kafka binder when using Spring Boot 1.5.1.

Spring Boot 1.5.1 对 kafka 进行了自动配置,而这些配置选项似乎与 Spring Cloud Stream kafka binder 中的配置选项相比是多余的.

Spring boot 1.5.1 has auto configuration for kafka and those configuration options seem to be redundant with those in the spring cloud stream kafka binder.

我们使用核心 spring 引导属性 (spring.kafka.) 还是使用 (spring.cloud.stream.kafka.binder.)?

Do we use the core spring boot properties (spring.kafka.) or do we use (spring.cloud.stream.kafka.binder.)?

我确实发现了这个问题,但我很好奇这项工作是否会包含在下一个 Camden 版本中?

I did find this issue, but I am curious if this work will be included in the next Camden release?

https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/73

此外,我在 Stack Overflow 上看到了这个问题,我相信它也会是 Camden.SR5 的问题吗?

Additionally, I saw this issue reported on Stack Overflow and I believe it will also be an issue with Camden.SR5?

启动失败bean 'inputBindingLifecycle' 使用 spring-boot:1.5.1 和 spring-cloud-stream

谢谢

推荐答案

支持 Boot 1.5 配置选项是一个正在进行的问题.此外,由于专门的 1.5 支持仅随 Spring Cloud Stream Chelsea 版本系列(包含在 Spring Cloud 的 Dalston 版本中)提供,因此仅在该版本中可用.

Supporting the Boot 1.5 configuration options is an issue in progress. Also, since dedicated 1.5 support is coming only with Spring Cloud Stream Chelsea release train (which is included in the Dalston release of Spring Cloud), it will be available only there.

此外,当使用 Spring Cloud Camden 和 Boot 1.5 时,您需要覆盖 Kafka 依赖项,如 使用 spring-boot:1.5.1 和 spring-cloud-stream 时无法启动 bean 'inputBindingLifecycle'.这将在 Spring Cloud Stream(和 Spring Cloud)的未来版本中避免,但仅在 Spring Cloud Stream 的 Chelsea 版本系列(和 Spring Cloud 的 Dalston 版本)中开始 - 请参阅 https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/88 了解详情.

Also, when using Spring Cloud Camden with Boot 1.5 you will need to override the Kafka dependencies as described in Failed to start bean 'inputBindingLifecycle' when using spring-boot:1.5.1 and spring-cloud-stream. This will be avoided in future versions of Spring Cloud Stream (and Spring Cloud) but only starting in the Chelsea release train of Spring Cloud Stream (and the Dalston release of Spring Cloud) - see https://github.com/spring-cloud/spring-cloud-stream-binder-kafka/issues/88 for details.

这篇关于使用 Spring Boot 1.5.1 在 Camden.SR5 中配置 Spring Cloud Stream的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆