Browse Source

更新 'src/main/resources/bootstrap.yml'

xiatongxi 3 years ago
parent
commit
89758a6221
1 changed files with 7 additions and 4 deletions
  1. 7 4
      src/main/resources/bootstrap.yml

+ 7 - 4
src/main/resources/bootstrap.yml

@@ -3,7 +3,8 @@ server:
3 3
   port: 9609
4 4
 eureka:
5 5
   instance:
6
-    hostname: 172.16.0.6 #地址
6
+    #hostname: 172.16.0.6 #地址
7
+    hostname: 172.16.0.2 #地址
7 8
     prefer-ip-address: true
8 9
 #    status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
9 10
   client:
@@ -11,7 +12,7 @@ eureka:
11 12
       # 向注册中心注册服务
12 13
       defaultZone: http://admin:admin@${eureka.instance.hostname}:9600/eureka
13 14
 swagger:
14
-  host: 172.16.0.6
15
+  host: 172.16.0.2
15 16
 
16 17
 spring:
17 18
   application:
@@ -21,8 +22,10 @@ spring:
21 22
       discovery:
22 23
         enabled: true
23 24
         service-id: csc-szls-config  # 注册中心的服务名
24
-      profile: dev  # 指定配置文件的环境
25
-      label: develop # 分支 master
25
+     # profile: dev  # 指定配置文件的环境
26
+     # label: develop # 分支 master
27
+      profile: prod  # 指定配置文件的环境
28
+      label: master  # 分支 master
26 29
   devtools:
27 30
     restart:
28 31
       log-condition-evaluation-delta: false