Files
jsowell-charger-web/jsowell-admin/src/main/resources/application-dev.yml

133 lines
4.0 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 数据源配置
spring:
# redis 配置
redis:
# 地址
host: 192.168.2.2
# 端口默认为6379
port: 6379
# 数据库索引
database: 0
# 密码
password:
# 连接超时时间
timeout: 10s
lettuce:
pool:
# 连接池中的最小空闲连接
min-idle: 0
# 连接池中的最大空闲连接
max-idle: 8
# 连接池的最大数据库连接数
max-active: 8
# #连接池最大阻塞等待时间(使用负值表示没有限制)
max-wait: -1ms
# 数据源配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://192.168.2.2:3306/jsowell_dev?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: jsowell_dev
password: 123456
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 10
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
timeBetweenEvictionRunsMillis: 60000
# 配置一个连接在池中最小生存的时间,单位是毫秒
minEvictableIdleTimeMillis: 300000
# 配置一个连接在池中最大生存的时间,单位是毫秒
maxEvictableIdleTimeMillis: 900000
# 配置检测连接是否有效
validationQuery: SELECT 1 FROM DUAL
testWhileIdle: true
testOnBorrow: false
testOnReturn: false
webStatFilter:
enabled: true
statViewServlet:
enabled: true
# 设置白名单,不填则允许所有访问
allow:
url-pattern: /druid/*
# 控制台管理用户名和密码
login-username: jsowell
login-password: 123456
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: true
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# Swagger配置
swagger:
# 是否开启swagger
enabled: true
# 请求前缀
pathMapping: /dev-api
# 日志配置
logging:
level:
com.jsowell: debug
org.springframework: warn
# 二维码前缀
qrcodeurl:
prefix: https://api.jsowellcloud.com
########################微信支付参数#######################################
#微信商户号
wechat:
mchId: 1632405339
#商家API证书序列号
mchSerialNo: 7596EF543159D21D25F199F82B9045FB9A82D7E0
#商户在微信公众平台申请服务号对应的APPID
appId: wxbb3e0d474569481d
#回调报文解密V3密钥key
v3Key: bbac689f4654b209de4d6944808ec80b
#微信获取平台证书列表地址
certificates:
url: https://api.mch.weixin.qq.com/v3/certificates
#微信统一下单Navtive的API地址用于二维码支付
unifiedOrder:
url: https://api.mch.weixin.qq.com/v3/pay/transactions/native
#微信统一下单JSAPI的API地址用于微信小程序
jsurl: https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi
# 申请退款API
refund:
jsurl: https://api.mch.weixin.qq.com/v3/refund/domestic/refunds
#异步接收微信支付结果通知的回调地址
callback: https://api.jsowellcloud.com/uniapp/pay/wechatPayCallback
#异步接收微信退款结果通知的回调地址
refundCallback: https://api.jsowellcloud.com/uniapp/pay/wechatPayRefundCallback
#商户证书私钥路径
key:
path: D:/WechatCert/apiclient_key.pem
########################微信支付参数#######################################
# C:/Users/autum/Desktop/work/1632405339_20221125_cert/apiclient_key.pem
# E://key/1632405339_20221125_cert/apiclient_key.pem