spring cloud config server pull

2019-10-20  本文已影响0人  rrsunhome

在使用spring-cloud-config时,如果我们在持续的开发过程中,对远程仓库内容发生改动时,经常会出现c.s.e.MultipleJGitEnvironmentRepository

: Cannot pull from remote the working tree is not

clean.这种报错,这种报错是由于Spring Cloud配置服务器会复制远程git存储库,如果本地副本变得不干净,那么Spring

Cloud配置服务器就不能更新远程存储库中的本地副本。为了解决这个问题,

方案:

1.配置强制拉取属性 force-pull:true

2.删除本地不干净副本/tmpconfig-repo-版本号

报错异常

上一篇 下一篇

猜你喜欢

热点阅读