先上配置文件
server:
port: 8099
spring:
application: hyl-config-server
cloud:
config:
server:
git:
uri: http://gitlab.hyl.com.cn/hyl/configserver.git
username:
password:
logging:
config: classpath:logback-spring.xml
level:
root: debug
path: logs/
file: config.log
上網看了大家的解決辦法無非是兩個:
1,uri沒有加.git
2,需要設置skip-ssl-validation爲true。
但是依然沒有用。
然後我注意到我的uri是http開頭的,並不是https。
然後我把這個改爲https,居然可以了。。。。
這個地址是我從gitlab上直接copy下來的,不明白爲什麼默認顯示http,而不是https。等週一問下大神。