111 lines
3.6 KiB
YAML
111 lines
3.6 KiB
YAML
server:
|
||
port: 10015
|
||
spring:
|
||
application:
|
||
name: ebike-payment
|
||
cloud:
|
||
nacos:
|
||
server-addr: 127.0.0.1:8848 # nacos
|
||
username: nacos
|
||
password: nacos
|
||
sql:
|
||
init:
|
||
platform: postgis
|
||
mode: never
|
||
schema-locations: classpath:db/init.sql
|
||
data-locations: classpath:db/data.sql
|
||
jackson:
|
||
serialization:
|
||
write-dates-as-timestamps: false
|
||
date-format: yyyy-MM-dd HH:mm:ss
|
||
time-zone: GMT+8
|
||
datasource:
|
||
url: jdbc:postgresql://47.109.71.130:5432/ebike_user?currentSchema=public&stringtype=unspecified
|
||
username: root
|
||
password: 970529
|
||
driver-class-name: org.postgresql.Driver
|
||
hikari:
|
||
## 最小空闲连接数量
|
||
minimum-idle: 2
|
||
## 空闲连接存活最大时间,默认600000(10分钟)
|
||
idle-timeout: 180000
|
||
## 连接池最大连接数,默认是10
|
||
maximum-pool-size: 5
|
||
## 数据库连接超时时间,默认30秒,即30000
|
||
connection-timeout: 30000
|
||
connection-test-query: SELECT 1
|
||
##此属性控制池中连接的最长生命周期,值0表示无限生命周期,默认1800000即30分钟
|
||
max-lifetime: 1800000
|
||
data:
|
||
# redis配置
|
||
redis:
|
||
# Redis数据库索引(默认为0)
|
||
database: 1
|
||
# Redis服务器地址
|
||
host: 47.109.71.130
|
||
# Redis服务器连接端口
|
||
port: 6379
|
||
# Redis服务器连接密码(默认为空)
|
||
password: 970529
|
||
# 连接超时时间
|
||
lettuce:
|
||
pool:
|
||
# 连接池最大连接数
|
||
max-active: 200
|
||
# 连接池最大阻塞等待时间(使用负值表示没有限制)
|
||
max-wait: -1ms
|
||
# 连接池中的最大空闲连接
|
||
max-idle: 10
|
||
# 连接池中的最小空闲连接
|
||
min-idle: 0
|
||
|
||
mybatis-flex:
|
||
mapper-locations: classpath:mapper/*.xml
|
||
sa-token:
|
||
# token 名称(同时也是 cookie 名称)
|
||
token-name: Authorization
|
||
# token 有效期(单位:秒) 默认30天,-1 代表永久有效
|
||
timeout: 2592000
|
||
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
||
active-timeout: -1
|
||
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|
||
is-concurrent: true
|
||
# 在多人登录同一账号时,是否共用一个 token (为 true 时所有登录共用一个 token, 为 false 时每次登录新建一个 token)
|
||
is-share: true
|
||
# token 风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
|
||
token-style: random-32
|
||
# 是否输出操作日志
|
||
is-log: true
|
||
|
||
payment:
|
||
wx-pay:
|
||
app-id: wx327d788d7bd6eddf
|
||
merchant-id: 1715147005
|
||
private-key-path: D:/wxpay/apiclient_key.pem
|
||
public-key-path: D:/wxpay/pub_key.pem
|
||
merchant-serial-number: 7873E3E694ADD0368EA3E9FAC929F496EECB8DF9
|
||
api-v3-key: 1715147005V3Key20250425174554633
|
||
public-key-id: PUB_KEY_ID_0117151470052025042500331704000601
|
||
pay-notify_url: http://192.168.101.18:10010/payment/wxPayment/pay-notify
|
||
refund-notify_url: http://192.168.101.18:10010/payment/wxPayment/refund-notify
|
||
expire-minutes: 1440
|
||
pay-schedule: 0 0 0/12 * * ?
|
||
refund-schedule: 0 0/30 * * * ?
|
||
task-scheduler-pool:
|
||
poolSize: 100
|
||
threadNamePrefix: task-scheduled-
|
||
waitForTasksToCompleteOnShutdown: true
|
||
awaitTerminationSeconds: 30
|
||
|
||
management:
|
||
endpoints:
|
||
web:
|
||
exposure:
|
||
include: health,info
|
||
endpoint:
|
||
health:
|
||
show-details: always
|
||
|
||
logging:
|
||
pattern:
|
||
dateformat: yyyy-MM-dd HH:mm:ss |