在使用Nacos作为配置中心与SpringCloud集成时报Could not locate PropertySource: I/O error on GET request for "http://localhost:8888/XXXX/dev": Connection refused: connect; nested exception is java.net.ConnectException: Connection refused: connect ,解决方法是在bootstrap.yml添加
spring:
cloud:
config:
enabled: false
或bootstrap.properties添加:spring.cloud.config.enabled=false即可