小编Nis*_*oru的帖子

Configuration which allows to disable cloud stream?

I have a spring boot application which has two functionalities Http requests and kafka Messages handling. I want this application to run in mode which is enabled from application.yml i.e if the user wants to enable it only for http requests then kafka should not be connected.

I could achieve this using normal spring boot kafka plugin by disabling auto configure using the following property at @KafkaListener,

autoStartup="${module.put:false}"

现在我们正在尝试转向云流,我发现通过删除云流和活页夹库来禁用它的唯一方法。有没有更好的方法使用自动配置模式的属性来禁用它,或者是否有任何手动配置选项可用?

dynamic-loading apache-kafka spring-cloud-stream spring-cloud-stream-binder-kafka

5
推荐指数
2
解决办法
4190
查看次数