Spring Cloud Config Server Can't locate PropertySource on startup

后端 未结 3 1560
眼角桃花
眼角桃花 2021-01-04 04:45

When I start my Spring Cloud Config Server I get the following error.

Could not locate PropertySource: I/O error on GET request for \"http://localhost:8888/c         


        
相关标签:
3条回答
  • 2021-01-04 05:41

    This error is shown when one of your services is not able to connect to the cloud-config server. In order to make it work. I assume you are using STS or any Eclipse environment, run your cloud-config server application and then run the other service whose configurations are stored at the cloud-config. It is very important to keep running both the services. Other precautions that need to be taken care of are: your application's application.properties file should be renamed to bootstrap.properties' and port should not be used by any other services

    0 讨论(0)
  • 2021-01-04 05:42

    If your config server is not intended to be a config client as well you need to set spring.cloud.config.enabled=false to avoid that log entry (it's harmless though).

    0 讨论(0)
  • 2021-01-04 05:51

    The eureka.client.serviceUrl.defaultZone and spring.cloud.config.* configuration in the bootstrap yml file

    0 讨论(0)
提交回复
热议问题