1
我正在使用Spring Cloud Config,因此我在配置服务器的bootstrap.yml中设置了下面提到的配置。无法使用用户名和密码从git获取配置[Spring Cloud Config]
---
spring:
application:
name: sample-config
cloud:
config:
server:
git:
uri: https://github.com/ragnar-lothbrok/fileUpload/
username: xxx
password: yyy
eureka:
instance:
nonSecurePort: ${server.port:8888}
client:
serviceUrl:
defaultZone: http://${eureka.host:localhost}:${eureka.port:8761}/eureka/
但是,当我启动客户端它抛出异常,我发现我在控制器中使用的属性。
开始只是改变用户名合作EMAILID。 – cody123