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