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
   port: 9609
3
   port: 9609
4
 eureka:
4
 eureka:
5
   instance:
5
   instance:
6
-    hostname: 172.16.0.6 #地址
6
+    #hostname: 172.16.0.6 #地址
7
+    hostname: 172.16.0.2 #地址
7
     prefer-ip-address: true
8
     prefer-ip-address: true
8
 #    status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
9
 #    status-page-url: http://${eureka.instance.hostname}:${server.port}/swagger-ui.html
9
   client:
10
   client:
@@ -11,7 +12,7 @@ eureka:
11
       # 向注册中心注册服务
12
       # 向注册中心注册服务
12
       defaultZone: http://admin:admin@${eureka.instance.hostname}:9600/eureka
13
       defaultZone: http://admin:admin@${eureka.instance.hostname}:9600/eureka
13
 swagger:
14
 swagger:
14
-  host: 172.16.0.6
15
+  host: 172.16.0.2
15
 
16
 
16
 spring:
17
 spring:
17
   application:
18
   application:
@@ -21,8 +22,10 @@ spring:
21
       discovery:
22
       discovery:
22
         enabled: true
23
         enabled: true
23
         service-id: csc-szls-config  # 注册中心的服务名
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
   devtools:
29
   devtools:
27
     restart:
30
     restart:
28
       log-condition-evaluation-delta: false
31
       log-condition-evaluation-delta: false