lea*_*ove 4 spring github spring-boot spring-cloud spring-cloud-config
我在GitHub上的repo中托管配置.如果我保持回购公众的一切都很好,但如果我把它私有化我面对:
org.eclipse.jgit.errors.TransportException:
https://github.com/my-user/my-repo:
Authentication is required but no CredentialsProvider has been registered
Run Code Online (Sandbox Code Playgroud)
我用来定位回购的属性是
spring.cloud.config.server.git.uri=https://github.com/my-user/my-repo
Run Code Online (Sandbox Code Playgroud)
我应该怎么做才能正确配置私人仓库,谢谢
Mas*_*ave 10
你需要添加
spring.cloud.config.server.git.username=your_github_username
spring.cloud.config.server.git.password=your_github_password
Run Code Online (Sandbox Code Playgroud)
事情应该为你锻炼
| 归档时间: |
|
| 查看次数: |
4354 次 |
| 最近记录: |