Ver código fonte

配置文件修改

lvzhikai 6 anos atrás
pai
commit
cb4021d366
1 arquivos alterados com 37 adições e 13 exclusões
  1. 37 13
      src/main/resources/bootstrap.yml

+ 37 - 13
src/main/resources/bootstrap.yml

@@ -11,27 +11,29 @@ server:
11 11
 eureka:
12 12
   client:
13 13
     service-url:
14
-      defaultZone: http://192.168.123.98:9001/eureka/
14
+      defaultZone: http://eureka-depot-sx:9001/eureka/
15 15
   instance:
16
-    ip-address: 10.100.1.61
17 16
     prefer-ip-address: true
18
-    instance-id: ${eureka.instance.ip-address}:${server.port}
17
+    # 每隔10s发送一次心跳(默认30s)
18
+    lease-renewal-interval-in-seconds: 10
19
+    # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
20
+    lease-expiration-duration-in-seconds: 30
19 21
 
20 22
 spring:
21 23
   profiles: agentLv
22 24
   application:
23
-    name: depot-agent-lv
25
+    name: depot-agent
24 26
   # 数据库配置
25 27
   datasource:
26 28
     driver-class-name: com.mysql.jdbc.Driver
27
-    url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8
29
+    url: jdbc:mysql://192.168.123.38:3306/depot_shanxi?useUnicode=true&characterEncoding=utf-8
28 30
     username: root
29 31
     password: 123456
30 32
   # 缓存配置
31 33
   session:
32 34
     store-type: redis
33 35
   redis:
34
-    database: 0
36
+    database: 1
35 37
     host: 192.168.123.98
36 38
     port: 6666
37 39
     password: depotredis
@@ -42,25 +44,46 @@ spring:
42 44
         max-wait: -1
43 45
         max-idle: 8
44 46
         min-idle: 0
45
-logging.level.com.chinaitop.depot.agent.crk.mapper: debug
47
+  # 静态资源配置
48
+  resources:
49
+    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
50
+
51
+web:
52
+  upload-path: /upload
46 53
 
47 54
 ---
55
+server:
56
+  port: 9027
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
+
48 72
 spring:
49 73
   profiles: dev
50
-  cloud:
51
-    refresh:
52
-      refreshable: none
74
+  application:
75
+    name: depot-agent-lv
53 76
   # 数据库配置
54 77
   datasource:
55 78
     driver-class-name: com.mysql.jdbc.Driver
56
-    url: jdbc:mysql://192.168.123.38:3306/depot_shanxi?useUnicode=true&characterEncoding=utf-8
79
+    url: jdbc:mysql://192.168.123.38:3306/depot_yunnan?useUnicode=true&characterEncoding=utf-8
57 80
     username: root
58 81
     password: 123456
59 82
   # 缓存配置
60 83
   session:
61 84
     store-type: redis
62 85
   redis:
63
-    database: 0
86
+    database: 1
64 87
     host: 192.168.123.98
65 88
     port: 6666
66 89
     password: depotredis
@@ -76,4 +99,5 @@ spring:
76 99
     static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
77 100
 
78 101
 web:
79
-  upload-path: /home
102
+  upload-path: /upload
103
+logging.level.com.chinaitop.depot.agent.crk.mapper: debug