在很多情况下,我们不希望使用默认的的缓存路径,spring cloud config是提供了指定缓存路径的功能
spring:
application:
name: public-config
cloud:
config:
server:
git:
uri: https://git.zhubanxian.com/zhu/online_edu_config.git
username: **
password: **
basedir: C:/work/config/tmp #指定缓存路径
force-pull: true #是否强制拉取
注意下路径的格式