1
1
server :
2
2
port : 9099
3
3
address : 0.0.0.0
4
- tomcat :
5
- threads :
6
- max : 800 # Maximum number of worker threads, default 200
7
- min-spare : 100 # Minimum number of idle worker threads, default 10
8
4
9
5
spring :
10
6
datasource :
11
- is-open : false
7
+ is-open : true
8
+ cdb :
9
+ username :
10
+ password :
11
+ jdbc-url : jdbc:mysql://...:3306/mmexptrule?characterEncoding=utf-8
12
+ driver-class-name : com.mysql.cj.jdbc.Driver
12
13
mysql :
13
- username : root
14
- password : allinsql666
15
- jdbc-url : jdbc:mysql://172.22.0.2 :3306/mmexptdataplatform?characterEncoding=utf-8
14
+ username :
15
+ password :
16
+ jdbc-url : jdbc:mysql://... :3306/mmexptdataplatform?characterEncoding=utf-8
16
17
driver-class-name : com.mysql.cj.jdbc.Driver
17
18
# hikari 数据库连接池配置
18
19
type : com.zaxxer.hikari.HikariDataSource
19
20
pool-name : SqlGateway-MysqlHiKariPool
20
21
minimum-idle : 10 # 最小空闲连接,默认值10
21
- maximum-pool-size : 200 # 最大连接数,默认值10
22
+ maximum-pool-size : 500 # 最大连接数,默认值10
22
23
idle-timeout : 500000 # 池中空闲连接超时时间, 默认值600000(10分钟), 大于等于max-lifetime且max-lifetime>0, 会被重置为0
23
24
max-lifetime : 540000 # 池中连接最大存活时间, 不等于0且小于30秒, 会被重置为默认值30分钟.设置应该比mysql设置的超时时间短
24
25
connection-timeout : 60000 # 连接超时时间, 默认值30000毫秒(5分钟)
25
26
clickhouse :
26
- username : default
27
- password : allinsql666
28
- jdbc-url : jdbc:clickhouse://172.22.0.3:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
29
- driver-class-name : com.clickhouse.jdbc.ClickHouseDriver
30
- starrocks :
31
- username : root
27
+ username :
32
28
password :
33
- jdbc-url : jdbc:clickhouse://172.22.0.6:9030/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
34
- driver-class-name : com.mysql.cj.jdbc.Driver
29
+ jdbc-url : jdbc:clickhouse://...:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
30
+ driver-class-name : com.clickhouse.jdbc.ClickHouseDriver
31
+ type : com.zaxxer.hikari.HikariDataSource
32
+ pool-name : SqlGateway-ClickhouseHiKariPool
33
+ minimum-idle : 10
34
+ maximum-pool-size : 20
35
+ idle-timeout : 500000
36
+ max-lifetime : 540000
37
+ connection-timeout : 60000
35
38
jackson :
36
39
date-format : yyyy-MM-dd HH:mm:ss
37
40
time-zone : Asia/Shanghai
@@ -40,57 +43,48 @@ olap:
40
43
clickhouse :
41
44
driver : com.clickhouse.jdbc.ClickHouseDriver
42
45
devices :
43
- - id : 1
44
- url : jdbc:clickhouse://172.22.0.3:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
45
- user : default
46
- password : allinsql666
46
+ - id : 2
47
+ url : jdbc:clickhouse://...:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
48
+ user :
49
+ password :
50
+ ip :
51
+ - ...
52
+ - ...
53
+ - ...
54
+ - id : 3
55
+ url : jdbc:clickhouse://...:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
56
+ user :
57
+ password :
47
58
ip :
48
- - 172.22.0.3
59
+ - ...
60
+ - ...
61
+ - ...
49
62
starrocks :
50
63
driver : com.mysql.cj.jdbc.Driver
51
64
devices :
52
- - id : 2
53
- url : jdbc:mysql://172.22.0.6 :9030/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
54
- user : root
65
+ - id : 1
66
+ url : jdbc:mysql://... :9030/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
67
+ user :
55
68
password :
56
69
ip :
57
- - 172.22.0.6
58
-
59
- clickhouse :
60
- driver : com.clickhouse.jdbc.ClickHouseDriver
61
- devices :
62
- - id : 1
63
- url : jdbc:clickhouse://172.22.0.3:8123/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
64
- user : default
65
- password : allinsql666
66
- ip :
67
- - 172.22.0.3
68
-
69
- starrocks :
70
- driver : com.mysql.cj.jdbc.Driver
71
- devices :
72
- - id : 2
73
- url : jdbc:mysql://172.22.0.6:9030/all_in_sql?socket_timeout=3603000&max_execution_time=3602&compress=0
74
- user : root
75
- password :
76
- ip :
77
- - 172.22.0.6
78
-
70
+ - ...
71
+ - ...
72
+ - ...
79
73
80
74
mybatis :
81
75
configuration :
82
- map-underscore-to-camel-case : true
76
+ map-underscore-to-camel-case : true # Bean类驼峰命名转换
83
77
84
78
pagehelper :
85
- reasonable : true
79
+ reasonable : true # 分页合理化参数,默认值为 false 当该参数设置为 true 时,pageNum<=0 时会查询第一页,pageNum>pages(超过总数时),会查询最后一页
86
80
supportMethodsArguments : true
87
81
88
82
springdoc :
89
83
swagger-ui :
90
- path : /api
84
+ path : /api # 修改Swagger UI页面的请求路径
91
85
api-docs :
92
- path : /api/api-json-docs
93
- paths-to-match : /api/**
86
+ path : /api/api-json-docs # 修改api-docs路径
87
+ paths-to-match : /api/** # 配置需要生成接口文档的接口路径
94
88
95
89
logging :
96
90
level :
0 commit comments