问题
I have a simple Spring Cloud Config Server which consume configuration from git server.
ConfigServer bootstrap.yml :
spring:
application:
name: config-service
cloud:
config:
server:
git:
uri: ssh://git@mydomain:myport/myrepo.git
searchPaths: "configurations/{application}/{profile}"
server:
port: 8888
When I deploy ConfigServer on local, I can retrieve configuration from http://localhost:8888/myapp/test
. But when I deploy ConfigServer on test server, it throws No such label: master
when I hit http://testserverip:8888/myapp/test
.
Any help would be most appreciated!
回答1:
This happens when your service cannot access to Git repository. Since you can start your application, I assume test server can reach to Git. You should set up SSH authentication to your Git server. You can check this site for SSH configuration.
来源:https://stackoverflow.com/questions/40024161/spring-config-server-no-such-label-master