Skip to content

Commit 07f71e8

Browse files
author
cooperxiong
committed
[Feature] sync code
1 parent 5157128 commit 07f71e8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+5329
-2206
lines changed

Diff for: conf/sqlgateway_application.yml

+46-52
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,40 @@
11
server:
22
port: 9099
33
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
84

95
spring:
106
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
1213
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
1617
driver-class-name: com.mysql.cj.jdbc.Driver
1718
# hikari 数据库连接池配置
1819
type: com.zaxxer.hikari.HikariDataSource
1920
pool-name: SqlGateway-MysqlHiKariPool
2021
minimum-idle: 10 # 最小空闲连接,默认值10
21-
maximum-pool-size: 200 # 最大连接数,默认值10
22+
maximum-pool-size: 500 # 最大连接数,默认值10
2223
idle-timeout: 500000 # 池中空闲连接超时时间, 默认值600000(10分钟), 大于等于max-lifetime且max-lifetime>0, 会被重置为0
2324
max-lifetime: 540000 # 池中连接最大存活时间, 不等于0且小于30秒, 会被重置为默认值30分钟.设置应该比mysql设置的超时时间短
2425
connection-timeout: 60000 # 连接超时时间, 默认值30000毫秒(5分钟)
2526
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:
3228
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
3538
jackson:
3639
date-format: yyyy-MM-dd HH:mm:ss
3740
time-zone: Asia/Shanghai
@@ -40,57 +43,48 @@ olap:
4043
clickhouse:
4144
driver: com.clickhouse.jdbc.ClickHouseDriver
4245
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:
4758
ip:
48-
- 172.22.0.3
59+
- ...
60+
- ...
61+
- ...
4962
starrocks:
5063
driver: com.mysql.cj.jdbc.Driver
5164
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:
5568
password:
5669
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+
- ...
7973

8074
mybatis:
8175
configuration:
82-
map-underscore-to-camel-case: true
76+
map-underscore-to-camel-case: true # Bean类驼峰命名转换
8377

8478
pagehelper:
85-
reasonable: true
79+
reasonable: true # 分页合理化参数,默认值为 false 当该参数设置为 true 时,pageNum<=0 时会查询第一页,pageNum>pages(超过总数时),会查询最后一页
8680
supportMethodsArguments: true
8781

8882
springdoc:
8983
swagger-ui:
90-
path: /api
84+
path: /api # 修改Swagger UI页面的请求路径
9185
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/** # 配置需要生成接口文档的接口路径
9488

9589
logging:
9690
level:

Diff for: lib/sqlgateway-0.0.1-SNAPSHOT.jar

199 KB
Binary file not shown.

0 commit comments

Comments
 (0)