This commit is contained in:
cc
2024-11-29 11:32:24 +08:00
parent f34c402757
commit 34c2e8638e
3 changed files with 13 additions and 6 deletions

View File

@@ -2,13 +2,20 @@ server:
port: 6666
spring:
application:
name: wxSend
name: jd
#数据源配置
datasource:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://192.168.8.88:3306/jd?characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
username: root
password: mysql_7sjTXH
hikari:
maximum-pool-size: 2000 # 最大连接数
minimum-idle: 48 # 最小空闲连接数
idle-timeout: 30000 # 空闲连接超时时间(毫秒)
max-lifetime: 2000000 # 最大生命周期(毫秒)
connection-timeout: 30000 # 连接超时时间(毫秒)
pool-name: SpringBootHikariCP # 连接池名字
#redis配置
redis:
host: 192.168.8.88
@@ -17,7 +24,7 @@ spring:
timeout: 1800000
lettuce:
pool:
max-active: 20
max-active: 200
#最大阻塞等待时间(负数表示没限制)
max-wait: -1
max-idle: 5

View File

@@ -2,7 +2,7 @@ server:
port: 6666
spring:
application:
name: wxSend
name: jd
profiles:
active: dev
#数据源配置
@@ -12,8 +12,8 @@ spring:
username: root
password: mysql_7sjTXH
hikari:
maximum-pool-size: 200 # 最大连接数
minimum-idle: 5 # 最小空闲连接数
maximum-pool-size: 2000 # 最大连接数
minimum-idle: 48 # 最小空闲连接数
idle-timeout: 30000 # 空闲连接超时时间(毫秒)
max-lifetime: 2000000 # 最大生命周期(毫秒)
connection-timeout: 30000 # 连接超时时间(毫秒)