一:本地服务端配置
1、把git上的代码用一个中转器转送到本地,项目名为springcloud-config-server-3344
org.springframework.boot spring-boot-starter-parent2.2.4.RELEASE 4.0.0 springcloud-config-server-3344org.springframework.boot spring-boot-starter-weborg.springframework.cloud spring-cloud-config-server2.2.2.RELEASE
2、application.yaml
server: port: 3344 spring: application: name: springcloud-config-server # 连接远程仓库 cloud: config: server: git: uri: https://gitee.com/wang-gangqiang/springcloud-config.git
3、配置一个本地项目,用来测试从本地服务器传送过来的git官网数据仓库上数据
项目名字为springcloud-config-client-3355
<1>pom文件
org.springframework.boot spring-boot-starter-parent2.2.4.RELEASE 4.0.0 springcloud-config-client-3355org.springframework.boot spring-boot-starter-web2.3.3.RELEASE org.springframework.cloud spring-cloud-starter-config2.2.2.RELEASE
<2>resources资源文件
application.yaml
spring: application: name: springcloud-config-client-3355
bootstrap.yaml
spring: cloud: config: uri: http://localhost:3344 name: config-client profile: test label: master
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)