我有一个简单的设置,使用Spring Boot ConfigServer和客户端服务,该服务调用ConfigServer从GIT获取配置prop文件的详细信息。
我的Config服务器正常工作,并且我能够从GIT获取prop文件。但是当我尝试运行使用ConfigServer获取详细信息的消费者服务器时,我遇到了一个错误... 错误如下...
我的Config服务器正常工作,并且我能够从GIT获取prop文件。但是当我尝试运行使用ConfigServer获取详细信息的消费者服务器时,我遇到了一个错误... 错误如下...
Connect Timeout Exception on Url - http://localhost:8888. Will be trying the next url if available
localhost:8888是我的configServer的URL,我可以直接从浏览器调用它,但由于我有一个大的prop文件,在从GIT中检索它时需要一些时间。
configServer上的配置(application.properties)
spring.application.name=config-server
server.port=8888
spring.cloud.config.server.git.uri=https://github.com/shibajiJava/MicroServiceDemo
spring.cloud.config.server.bootstrap=true
消费者服务的配置(bootstrap.properties)
spring.application.name=configuration-service
spring.cloud.config.uri=http://localhost:8888
spring.cloud.config.server.bootstrap=true
在消费者端有没有什么可以指定超时值的东西?谢谢。