|
|
@@ -30,10 +30,19 @@ spring:
|
|
30
|
30
|
name: csc-szls-message #服务名
|
|
31
|
31
|
# mysql配置
|
|
32
|
32
|
datasource:
|
|
33
|
|
- driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
33
|
+ driver-class-name: com.mysql.jdbc.Driver
|
|
34
|
34
|
username: root
|
|
35
|
35
|
password: 1qaz@WSX
|
|
36
|
36
|
url: jdbc:mysql://101.36.160.140:21029/csc-szls?characterEncoding=utf-8&useSSL=false&serverTimezone=UTC
|
|
|
37
|
+ hikari:
|
|
|
38
|
+ minimum-idle: 5 #最小空闲连接数量
|
|
|
39
|
+ idle-timeout: 180000 # 空闲连接存活最大时间,默认600000(10分钟)
|
|
|
40
|
+ maximum-pool-size: 50 #连接池最大连接数,默认是10
|
|
|
41
|
+ auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
|
|
|
42
|
+ pool-name: MyHikariCP #连接池母子
|
|
|
43
|
+ max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
|
|
|
44
|
+ connection-timeout: 60000 #数据库连接超时时间,默认30秒,即30000
|
|
|
45
|
+ connection-test-query: SELECT 1
|
|
37
|
46
|
|
|
38
|
47
|
quartz:
|
|
39
|
48
|
job-store-type: jdbc #数据库方式
|