zoukankan      html  css  js  c++  java
  • 23.Spring Cloud Bus 无法更新问题(踩坑) Spring cloud config server Could not fetch remote for master remote

    问题描述:

    spring cloud版本<spring-cloud.version>Dalston.SR1</spring-cloud.version>

    按照书上教程,Config-Server ,Config-Client加入注册中心,并且给Config-Client配置了rabbitMQ充当消息总线,用于刷新git配置文件改动时通知其他微服务获取最新配置。

    当我改动了git仓库上的配置文件,发送/bus/refresh完之后,本地验证还是没有更新过来。

    Config-Server控制报:

     c.s.e.MultipleJGitEnvironmentRepository : Cannot pull from remote the working tree is not clean.

    翻译:

    强制拉入Git存储库
    Spring Cloud Config Server复制远程git存储库之前所提到的,如果本地副本不知何故变得脏(例如,文件夹内容被OS进程更改),那么Spring Cloud Config Server无法从远程存储库更新本地副本。

    要解决这个问题,有一个强制拉取属性,它将使Spring云配置服务器强制拉取远程存储库

    所以我们需要在Config-Server配置照片那个加入:

    spring.cloud.config.server.git.force-pull=true

     微信公众号

     

     

  • 相关阅读:
    元素对应赋值与列表生成器
    python装饰器
    python之闭包
    内置函数,重要的四个reduce,map,lambda,filter
    高阶函数,递归函数,内置函数
    函数作用域
    python函数
    集合
    python深浅拷贝以及数据在内存中储存方法
    Linux之ubuntu系统操作学习笔记
  • 原文地址:https://www.cnblogs.com/niugang0920/p/12192052.html
Copyright © 2011-2022 走看看