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

报错信息如下

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

 2、解决:

去掉

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

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

再次启动,正常运行

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

 

相关文章: