|
|
@@ -1,8 +1,11 @@
|
|
|
1
|
+spring:
|
|
|
2
|
+ profiles:
|
|
|
3
|
+ active: clouda
|
|
1
|
4
|
server:
|
|
2
|
5
|
port: 9012
|
|
3
|
6
|
tomcat:
|
|
4
|
7
|
uri-encoding: utf-8
|
|
5
|
|
-
|
|
|
8
|
+---
|
|
6
|
9
|
# 注册中心配置
|
|
7
|
10
|
eureka:
|
|
8
|
11
|
client:
|
|
|
@@ -13,6 +16,7 @@ eureka:
|
|
13
|
16
|
lease-renewal-interval-in-seconds: 10
|
|
14
|
17
|
lease-expiration-duration-in-seconds: 30
|
|
15
|
18
|
spring:
|
|
|
19
|
+ profiles: locala
|
|
16
|
20
|
application:
|
|
17
|
21
|
name: depot-grain-inspection
|
|
18
|
22
|
# 数据库配置
|
|
|
@@ -41,4 +45,47 @@ spring:
|
|
41
|
45
|
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
42
|
46
|
|
|
43
|
47
|
web:
|
|
|
48
|
+ upload-path: /home
|
|
|
49
|
+---
|
|
|
50
|
+# 注册中心配置
|
|
|
51
|
+eureka:
|
|
|
52
|
+ client:
|
|
|
53
|
+ service-url:
|
|
|
54
|
+ defaultZone: http://172.16.0.46:9711/eureka/
|
|
|
55
|
+ instance:
|
|
|
56
|
+ prefer-ip-address: true
|
|
|
57
|
+ # 每隔10s发送一次心跳(默认30s)
|
|
|
58
|
+ lease-renewal-interval-in-seconds: 10
|
|
|
59
|
+ # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
|
60
|
+ lease-expiration-duration-in-seconds: 30
|
|
|
61
|
+spring:
|
|
|
62
|
+ profiles: clouda
|
|
|
63
|
+ application:
|
|
|
64
|
+ name: depot-grain-inspection
|
|
|
65
|
+ # 数据库配置
|
|
|
66
|
+ datasource:
|
|
|
67
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
68
|
+ url: mysql://101.36.160.140:21029/depot_shanxi?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2b8
|
|
|
69
|
+ username: root
|
|
|
70
|
+ password: 1qaz@WSX
|
|
|
71
|
+ # 缓存配置 host: redis-depot
|
|
|
72
|
+ session:
|
|
|
73
|
+ store-type: redis
|
|
|
74
|
+ redis:
|
|
|
75
|
+ database: 2
|
|
|
76
|
+ host: 172.16.0.46
|
|
|
77
|
+ port: 6679
|
|
|
78
|
+ password: 123456
|
|
|
79
|
+ timeout: 3000
|
|
|
80
|
+ jedis:
|
|
|
81
|
+ pool:
|
|
|
82
|
+ max-active: 8
|
|
|
83
|
+ max-wait: -1
|
|
|
84
|
+ max-idle: 8
|
|
|
85
|
+ min-idle: 0
|
|
|
86
|
+ # 静态资源配置
|
|
|
87
|
+ resources:
|
|
|
88
|
+ static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
|
89
|
+
|
|
|
90
|
+web:
|
|
44
|
91
|
upload-path: /home
|