Explorar el Código

配置文件修改

lvzhikai hace 6 años
padre
commit
597dcc6b12
Se han modificado 1 ficheros con 63 adiciones y 15 borrados
  1. 63 15
      src/main/resources/bootstrap.yml

+ 63 - 15
src/main/resources/bootstrap.yml

@@ -1,3 +1,7 @@
1
+spring:
2
+  profiles:
3
+    active: superviseLv
4
+---
1 5
 server:
2 6
   port: 9018
3 7
   tomcat:
@@ -7,15 +11,22 @@ server:
7 11
 eureka:
8 12
   client:
9 13
     service-url:
10
-      defaultZone: http://192.168.123.98:9001/eureka/
14
+      defaultZone: http://eureka-depot-yn:9001/eureka/
11 15
   instance:
12 16
     prefer-ip-address: true
17
+    # 每隔10s发送一次心跳(默认30s)
18
+    lease-renewal-interval-in-seconds: 10
19
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
20
+    lease-expiration-duration-in-seconds: 30
13 21
 
14 22
 spring:
23
+  profiles: superviseLv
24
+  application:
25
+    name: depot-supervise
15 26
   # 数据库配置
16 27
   datasource:
17 28
     driver-class-name: com.mysql.jdbc.Driver
18
-    url: jdbc:mysql://192.168.123.98:3306/depot?useUnicode=true&characterEncoding=utf-8
29
+    url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8
19 30
     username: root
20 31
     password: 123456
21 32
   # 缓存配置
@@ -36,18 +47,55 @@ spring:
36 47
   # 静态资源配置
37 48
   resources:
38 49
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
39
-  application:
40
-    name: depot-supervise
41
-  #配置中心配置
42
-  cloud:
43
-    config:
44
-      #使用discovery 时需要将eureka 写到该文件中,开发环境使用该方式,推荐使用。
45
-      discovery:
46
-        enabled: true
47
-        service-id: depot-config-server
48
-      profile: dev
49
-      label: master
50
-logging.level.com.chinaitop.depot.supervise.mapper: debug
51 50
 
52 51
 web:
53
-  upload-path: /home
52
+  upload-path: /home
53
+
54
+---
55
+server:
56
+  port: 9018
57
+  tomcat:
58
+    uri-encoding: utf-8
59
+
60
+# 注册中心配置
61
+eureka:
62
+  client:
63
+    service-url:
64
+      defaultZone: http://192.168.123.98:9001/eureka/
65
+  instance:
66
+    prefer-ip-address: true
67
+    # 每隔10s发送一次心跳(默认30s)
68
+    lease-renewal-interval-in-seconds: 10
69
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
70
+    lease-expiration-duration-in-seconds: 30
71
+
72
+spring:
73
+  profiles: dev
74
+  application:
75
+    name: depot-supervise-lv
76
+  # 数据库配置
77
+  datasource:
78
+    driver-class-name: com.mysql.jdbc.Driver
79
+    url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8
80
+    username: root
81
+    password: 123456
82
+  # 缓存配置
83
+  session:
84
+    store-type: redis
85
+  redis:
86
+    database: 0
87
+    host: 192.168.123.98
88
+    port: 6666
89
+    password: depotredis
90
+    timeout: 3000
91
+    jedis:
92
+      pool:
93
+        max-active: 8
94
+        max-wait: -1
95
+        max-idle: 8
96
+        min-idle: 0
97
+  # 静态资源配置
98
+  resources:
99
+    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
100
+
101
+logging.level.com.chinaitop.depot.agent.crk.mapper: debug