大漠知秋的加油站

  • 首页
大漠知秋的加油站
你就当我的烂笔头吧
  1. 首页
  2. Spring Cloud Finchley.RELEASE
  3. 正文

Config Server 本地覆盖远程

2019年1月3日 813点热度 0人点赞 0条评论

  在开发阶段,常常会使用本地参数覆盖掉远程参数,就需要进行一下配置:

spring:
  cloud:
    config:
      # 当 allow-override 为 true 时,
      # override-none 设置为 true,外部的配置优先级更低,
      # 而且不能覆盖任何存在的属性源,默认:false
      override-none: true
      # 标识 override-system-properties 属性是否启用。默认:true
      # 设置为 false 意为禁止用户的设置
      allow-override: true
      # 用来标识外部配置是否能够覆盖系统属性,默认:true
      override-system-properties: false
  • 注意:上面的配置项要写在 远程配置文件中
标签: Config Spring Cloud 本地覆盖远程
最后更新:2019年1月3日

大漠知秋

唯黄昏而思烛明,唯覆雪始念日暖,唯放手方知情真,今困苦而怀峥嵘,今飘零而涌乡愁,今孑然而徒唏嘘,唏嘘成愁。

点赞
< 上一篇
下一篇 >

文章评论

razz evil exclaim smile redface biggrin eek confused idea lol mad twisted rolleyes wink cool arrow neutral cry mrgreen drooling persevering
取消回复

COPYRIGHT © 2023 大漠知秋的加油站. ALL RIGHTS RESERVED.

Theme Kratos Made By Seaton Jiang

豫ICP备16029200号-2