Spring Cloud Config 优先使用本地配置

配置:

spring:
  cloud:
    config:
      allow-override: true
      override-none: true
      override-system-properties: false

参数

allow-override:决定override-system-properties是否启用,默认为true,false=禁用用户的配置
override-system-properties:用来标识外部配置是否能够覆盖系统属性,默认为true;
override-none:当allow-override和override-none同时为true,远程配置的优先级降低,不能覆盖其他配置;

猜你喜欢

转载自blog.csdn.net/q907811175/article/details/124736271