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

再次启动,正常运行

原文地址:https://www.cnblogs.com/donleo123/p/14274063.html