【发布时间】:2021-05-25 00:06:16
【问题描述】:
我有一个使用 Spring Cloud Config 的 Spring-Boot 应用程序,我正在尝试从 Bitbucket 获取应用程序的配置文件。前段时间我能够获取配置文件,但现在当我尝试通过 config-server url 访问时出现错误。
application.yml:
server:
port: 8888
spring:
application:
name: config-server
cloud:
config:
server:
git:
password: ##########
username: ##########
uri: https://USERNAME@bitbucket.org/repositorios-closeup/cup-configuration-files
searchPaths: '{application}'
当我尝试访问 url 时,应用程序显示错误 - 未授权:
org.eclipse.jgit.api.errors.TransportException: https://USERNAME@bitbucket.org/repositorios-closeup/cup-configuration-files: not authorized
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:254) ~[org.eclipse.jgit-5.1.3.201810200350-r.jar:5.1.3.201810200350-r]
at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:306) ~[org.eclipse.jgit-5.1.3.201810200350-r.jar:5.1.3.201810200350-r]
有人知道发生了什么吗?我已经检查了 bitbucket 上的所有凭据和 url。
【问题讨论】:
标签: spring-boot bitbucket spring-cloud-config