java.lang.IllegalStateException: Failed to load property source from 'file:/E:/liangd/Java/cloud/user/target/classes/bootstrap.yml' (classpath:/bootstrap.yml)

1、通过SpringCloud config统一配置文件时,报错

报错信息如下

 2、解决:

去掉

 register-with-eureka: true
        fetch-registry: true

再次启动,正常运行

 

posted @ 2021-01-13 19:47  donleo123  阅读(1634)  评论(0)    收藏  举报