|
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+spring:
|
|
|
2
|
+ profiles:
|
|
|
3
|
+ active: agentLv
|
|
|
4
|
+---
|
|
|
5
|
+server:
|
|
|
6
|
+ port: 9027
|
|
|
7
|
+ tomcat:
|
|
|
8
|
+ uri-encoding: utf-8
|
|
|
9
|
+
|
|
|
10
|
+# 注册中心配置
|
|
|
11
|
+eureka:
|
|
|
12
|
+ client:
|
|
|
13
|
+ service-url:
|
|
|
14
|
+ defaultZone: http://eureka-depot-tj:9001/eureka/
|
|
|
15
|
+ instance:
|
|
|
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
|
|
|
21
|
+
|
|
|
22
|
+spring:
|
|
|
23
|
+ profiles: agentLv
|
|
|
24
|
+ application:
|
|
|
25
|
+ name: depot-agent
|
|
|
26
|
+ # 数据库配置
|
|
|
27
|
+ datasource:
|
|
|
28
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
29
|
+ url: jdbc:mysql://192.168.123.38:3306/depot_tianjin?useUnicode=true&characterEncoding=utf-8
|
|
|
30
|
+ username: root
|
|
|
31
|
+ password: 123456
|
|
|
32
|
+ # 缓存配置
|
|
|
33
|
+ session:
|
|
|
34
|
+ store-type: redis
|
|
|
35
|
+ redis:
|
|
|
36
|
+ database: 2
|
|
|
37
|
+ host: 192.168.123.98
|
|
|
38
|
+ port: 6666
|
|
|
39
|
+ password: depotredis
|
|
|
40
|
+ timeout: 3000
|
|
|
41
|
+ jedis:
|
|
|
42
|
+ pool:
|
|
|
43
|
+ max-active: 8
|
|
|
44
|
+ max-wait: -1
|
|
|
45
|
+ max-idle: 8
|
|
|
46
|
+ min-idle: 0
|
|
|
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
|
|
|
53
|
+
|
|
|
54
|
+---
|
|
1
|
55
|
server:
|
|
2
|
56
|
port: 9027
|
|
3
|
57
|
tomcat:
|
|
|
@@ -7,29 +61,32 @@ server:
|
|
7
|
61
|
eureka:
|
|
8
|
62
|
client:
|
|
9
|
63
|
service-url:
|
|
10
|
|
- defaultZone: http://10.10.1.25:9001/eureka/
|
|
|
64
|
+ defaultZone: http://192.168.123.98:9001/eureka/
|
|
11
|
65
|
instance:
|
|
12
|
|
- ip-address: 10.100.1.148
|
|
13
|
66
|
prefer-ip-address: true
|
|
14
|
|
- instance-id: ${eureka.instance.ip-address}:${server.port}
|
|
|
67
|
+ # 每隔10s发送一次心跳(默认30s)
|
|
|
68
|
+ lease-renewal-interval-in-seconds: 10
|
|
|
69
|
+ # 告知服务端30秒还未收到心跳的话,就将该服务移除列表(默认90s)
|
|
|
70
|
+ lease-expiration-duration-in-seconds: 30
|
|
15
|
71
|
|
|
16
|
72
|
spring:
|
|
|
73
|
+ profiles: dev
|
|
17
|
74
|
application:
|
|
18
|
75
|
name: depot-agent-lv
|
|
|
76
|
+ # 数据库配置
|
|
19
|
77
|
datasource:
|
|
20
|
|
- type: com.alibaba.druid.pool.DruidDataSource
|
|
21
|
|
- url: jdbc:gbasedbt-sqli://192.168.123.38:9099/depot:INFORMIXSERVER=depot;NEWCODESET=GBK,8859-1,819;GL_USEGLU=1;IFX_USE_STRENC=true;characterEncoding=utf8;DB_LOCALE=zh_cn.GB18030-2000
|
|
22
|
|
- username: gbasedbt
|
|
23
|
|
- password: depot123456
|
|
24
|
|
- driver-class-name: com.gbasedbt.jdbc.IfxDriver
|
|
|
78
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
|
79
|
+ url: jdbc:mysql://192.168.123.38:3306/depot_tianjin?useUnicode=true&characterEncoding=utf-8
|
|
|
80
|
+ username: root
|
|
|
81
|
+ password: 123456
|
|
25
|
82
|
# 缓存配置
|
|
26
|
83
|
session:
|
|
27
|
84
|
store-type: redis
|
|
28
|
85
|
redis:
|
|
29
|
|
- database: 0
|
|
30
|
|
- host: 10.10.1.25
|
|
31
|
|
- port: 6379
|
|
32
|
|
- password:
|
|
|
86
|
+ database: 2
|
|
|
87
|
+ host: 192.168.123.98
|
|
|
88
|
+ port: 6666
|
|
|
89
|
+ password: depotredis
|
|
33
|
90
|
timeout: 3000
|
|
34
|
91
|
jedis:
|
|
35
|
92
|
pool:
|
|
|
@@ -37,6 +94,10 @@ spring:
|
|
37
|
94
|
max-wait: -1
|
|
38
|
95
|
max-idle: 8
|
|
39
|
96
|
min-idle: 0
|
|
40
|
|
-mybatis:
|
|
41
|
|
- config-location: classpath:mybatis/mybatis-config.xml
|
|
42
|
|
-logging.level.com.chinaitop.depot.agent.bgz.mapper: debug
|
|
|
97
|
+ # 静态资源配置
|
|
|
98
|
+ resources:
|
|
|
99
|
+ static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${web.upload-path}
|
|
|
100
|
+
|
|
|
101
|
+web:
|
|
|
102
|
+ upload-path: /upload
|
|
|
103
|
+logging.level.com.chinaitop.depot.agent.crk.mapper: debug
|