【问题标题】:Loading spring-cloud-consul properties from default Environment从默认环境加载 spring-cloud-consul 属性
【发布时间】:2016-07-12 01:18:00
【问题描述】:

为什么 spring-cloud-consul 不从 application.properties 文件加载 consul 特定属性?

有什么方法可以让 spring 从 application.properties 或任何其他自定义属性文件而不是 bootstrap.properties 加载这个 consul 属性?

【问题讨论】:

    标签: spring properties configuration spring-cloud consul


    【解决方案1】:

    不,如果你使用 consul config,consul 连接信息必须在bootstrap.yml

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-11-12
      • 2016-05-07
      • 2013-10-27
      • 2017-11-28
      • 1970-01-01
      • 2023-01-13
      • 2010-10-30
      • 2015-11-22
      相关资源
      最近更新 更多