2025-07-10 18:30:39 +08:00
|
|
|
|
server:
|
|
|
|
|
port: 8092
|
|
|
|
|
|
|
|
|
|
# 线程池配置
|
|
|
|
|
thread:
|
|
|
|
|
pool:
|
|
|
|
|
executor:
|
|
|
|
|
config:
|
|
|
|
|
core-pool-size: 20
|
|
|
|
|
max-pool-size: 50
|
|
|
|
|
keep-alive-time: 5000
|
|
|
|
|
block-queue-size: 5000
|
|
|
|
|
policy: CallerRunsPolicy
|
|
|
|
|
|
|
|
|
|
# 数据库配置;启动时配置数据库资源信息
|
|
|
|
|
spring:
|
|
|
|
|
datasource:
|
|
|
|
|
username: root
|
|
|
|
|
password: 123456
|
|
|
|
|
url: jdbc:mysql://127.0.0.1:13306/pay-mall?useUnicode=true&characterEncoding=utf8&autoReconnect=true&zeroDateTimeBehavior=convertToNull&serverTimezone=UTC&useSSL=true
|
|
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
hikari:
|
|
|
|
|
pool-name: Retail_HikariCP
|
|
|
|
|
minimum-idle: 15 #最小空闲连接数量
|
|
|
|
|
idle-timeout: 180000 #空闲连接存活最大时间,默认600000(10分钟)
|
|
|
|
|
maximum-pool-size: 25 #连接池最大连接数,默认是10
|
|
|
|
|
auto-commit: true #此属性控制从池返回的连接的默认自动提交行为,默认值:true
|
|
|
|
|
max-lifetime: 1800000 #此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
|
|
|
|
|
connection-timeout: 30000 #数据库连接超时时间,默认30秒,即30000
|
|
|
|
|
connection-test-query: SELECT 1
|
|
|
|
|
type: com.zaxxer.hikari.HikariDataSource
|
|
|
|
|
|
|
|
|
|
# MyBatis 配置【如需使用记得打开】
|
|
|
|
|
#mybatis:
|
|
|
|
|
# mapper-locations: classpath:/mybatis/mapper/*.xml
|
|
|
|
|
# config-location: classpath:/mybatis/config/mybatis-config.xml
|
|
|
|
|
|
|
|
|
|
# 微信公众号对接
|
|
|
|
|
weixin:
|
|
|
|
|
config:
|
|
|
|
|
originalid: gh_b748269e1f4c
|
2025-07-11 19:43:13 +08:00
|
|
|
|
token: asdf
|
|
|
|
|
app-id: wx7cc74be9b340b26e
|
|
|
|
|
app-secret: d4e73551512c6dc7a2e8f746c26b7f2c
|
|
|
|
|
template_id: ARDqdKXuGvASjsDqXzeunq0P8chMQ7tXk_4-BPULJ6U
|
2025-07-10 18:30:39 +08:00
|
|
|
|
|
|
|
|
|
# 日志
|
|
|
|
|
logging:
|
|
|
|
|
level:
|
|
|
|
|
root: info
|
|
|
|
|
config: classpath:logback-spring.xml
|