浏览代码

配置文件上传

duyalong@shanmuzhi.com 5 年之前
父节点
当前提交
6caedd53b0
共有 2 个文件被更改,包括 8 次插入3 次删除
  1. 5 0
      config-repo/springbootService-release.properties
  2. 3 3
      src/main/resources/application.yml

+ 5 - 0
config-repo/springbootService-release.properties

@@ -0,0 +1,5 @@
+spring.application.name=springbootService
+server.port=6004
+
+eureka.client.serviceUrl.defaultZone=http://localhost:5000/eureka/
+eureka.client.instance.preferIpAddress= true

+ 3 - 3
src/main/resources/application.yml

@@ -12,11 +12,11 @@ spring:
           git:
             uri: http://139.199.7.184:3000/dyl/springCloudConfig.git
             # 配置git仓库的地址
-            search-paths: 
+            search-paths:config-repo
             # git仓库地址下的相对地址,可以配置多个,?,分割。
-            username:
+            username:dyl
             # git仓库的账号
-            password:
+            password:dyl6010732
             # git仓库的密码
 
 eureka: