2016-10-07 18 views
2

我在GitHub上的回購託管配置中。如果我繼續回購公衆都很好,但如果我把它變成私有我的臉:從GitHub上託管的Spring Cloud Config服務器訪問的回購驗證問題

org.eclipse.jgit.errors.TransportException: 
https://github.com/my-user/my-repo: 
Authentication is required but no CredentialsProvider has been registered 

屬性我使用爲目標的回購是

spring.cloud.config.server.git.uri=https://github.com/my-user/my-repo 

我應該怎麼做來配置此正確地私人回購,感謝

回答

4

你需要添加

spring.cloud.config.server.git.username=your_github_username 
spring.cloud.config.server.git.password=your_github_password 

和事情應該鍛鍊你

相關問題