Spring cloud配置属性不支持配置属性


诸葛神侯
2025-01-25 04:42:18 (2月前)


我希望严格使用consul作为配置源。
我使用spring-cloud-consul-config来获取我的配置。
我正在使用git2consul将文件加载到领事并阅读它们。
按照春云……

2 条回复
  1. 0# 记忆只剩空城 | 2019-08-31 10-32



    你拥有的这些价值观

    application.properties




    1. spring.application.name=test-service
      spring.cloud.consul.config.enabled=true
      spring.cloud.consul.enabled=true
      spring.cloud.consul.config.format=FILES

    2. </code>


    需要进来


    bootstrap.properties




登录 后才能参与评论