1
This commit is contained in:
@@ -74,7 +74,7 @@ public class JDUtils {
|
|||||||
@Resource
|
@Resource
|
||||||
private WXUtil wxUtil;
|
private WXUtil wxUtil;
|
||||||
// 创建一个固定大小的线程池
|
// 创建一个固定大小的线程池
|
||||||
private ExecutorService jdExecutorService = Executors.newFixedThreadPool(64); // 线程池大小根据需求调整
|
private ExecutorService jdExecutorService = Executors.newFixedThreadPool(128); // 线程池大小根据需求调整
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 将 响应参数转化为 OrderRow,并返回
|
* 将 响应参数转化为 OrderRow,并返回
|
||||||
|
|||||||
@@ -2,13 +2,20 @@ server:
|
|||||||
port: 6666
|
port: 6666
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: wxSend
|
name: jd
|
||||||
#数据源配置
|
#数据源配置
|
||||||
datasource:
|
datasource:
|
||||||
driver-class-name: com.mysql.cj.jdbc.Driver
|
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
|
url: jdbc:mysql://192.168.8.88:3306/jd?characterEncoding=utf-8&useSSL=true&serverTimezone=GMT%2B8
|
||||||
username: root
|
username: root
|
||||||
password: mysql_7sjTXH
|
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配置
|
||||||
redis:
|
redis:
|
||||||
host: 192.168.8.88
|
host: 192.168.8.88
|
||||||
@@ -17,7 +24,7 @@ spring:
|
|||||||
timeout: 1800000
|
timeout: 1800000
|
||||||
lettuce:
|
lettuce:
|
||||||
pool:
|
pool:
|
||||||
max-active: 20
|
max-active: 200
|
||||||
#最大阻塞等待时间(负数表示没限制)
|
#最大阻塞等待时间(负数表示没限制)
|
||||||
max-wait: -1
|
max-wait: -1
|
||||||
max-idle: 5
|
max-idle: 5
|
||||||
|
|||||||
@@ -2,7 +2,7 @@ server:
|
|||||||
port: 6666
|
port: 6666
|
||||||
spring:
|
spring:
|
||||||
application:
|
application:
|
||||||
name: wxSend
|
name: jd
|
||||||
profiles:
|
profiles:
|
||||||
active: dev
|
active: dev
|
||||||
#数据源配置
|
#数据源配置
|
||||||
@@ -12,8 +12,8 @@ spring:
|
|||||||
username: root
|
username: root
|
||||||
password: mysql_7sjTXH
|
password: mysql_7sjTXH
|
||||||
hikari:
|
hikari:
|
||||||
maximum-pool-size: 200 # 最大连接数
|
maximum-pool-size: 2000 # 最大连接数
|
||||||
minimum-idle: 5 # 最小空闲连接数
|
minimum-idle: 48 # 最小空闲连接数
|
||||||
idle-timeout: 30000 # 空闲连接超时时间(毫秒)
|
idle-timeout: 30000 # 空闲连接超时时间(毫秒)
|
||||||
max-lifetime: 2000000 # 最大生命周期(毫秒)
|
max-lifetime: 2000000 # 最大生命周期(毫秒)
|
||||||
connection-timeout: 30000 # 连接超时时间(毫秒)
|
connection-timeout: 30000 # 连接超时时间(毫秒)
|
||||||
|
|||||||
Reference in New Issue
Block a user