【问题标题】:Spring Cloud Dataflow app/stream default propertiesSpring Cloud Dataflow 应用程序/流默认属性
【发布时间】:2017-03-09 09:09:00
【问题描述】:

我在application.properties中指定:

spring.cloud.config.uri=http://configserver:8888

但是当我从仪表板部署流时,我可以在日志中看到

从服务器获取配置:http://localhost:8888

这意味着它仍然尝试使用默认设置。

此外,Kafka binder 或 zkNodes 等任何其他属性都不会从 application.properties 读取,而是使用默认值,这会导致部署失败。

如何为所有已部署的应用程序/流覆盖这些属性?

【问题讨论】:

    标签: spring-cloud-dataflow


    【解决方案1】:

    属性必须以spring.cloud.dataflow.applicationProperties.stream为前缀,如

    spring.cloud.dataflow.applicationProperties.stream.spring.cloud.config.uri=http://configserver:8888
    spring.cloud.dataflow.applicationProperties.stream.spring.cloud.stream.kafka.binder.brokers=kafka:9092
    spring.cloud.dataflow.applicationProperties.stream.spring.cloud.stream.kafka.binder.zkNodes=zookeeper:2181
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-05-13
      • 1970-01-01
      • 2018-07-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2020-10-04
      相关资源
      最近更新 更多