pay-mall/pay-mall-app/src/main/resources/application-dev.yml

48 lines
1.5 KiB
YAML
Raw Normal View History

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 #空闲连接存活最大时间默认60000010分钟
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
token: b8b6
# 日志
logging:
level:
root: info
config: classpath:logback-spring.xml