You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

117 lines
2.9 KiB
YAML

server:
port: 7548
servlet:
context-path: /
tomcat:
max-connections: 5000
relaxedQueryChars: <,>, [,],^,`,{,|,}
spring:
application:
name: link_commerce
profiles:
active: dev
servlet:
multipart:
max-file-size: 500MB
max-request-size: 500MB
jackson:
time-zol ne: GMT+8
mvc:
pathmatch:
matching-strategy: ant_path_matcher
redis:
host: localhost
# host: 120.79.54.255
port: 6359
password: tzredis
timeout: 1800000
database: 2
jedis:
max-active: 500
max-idle: 50
min-idle: 2
test-on-borrow: true # 借出连接时验证
shutdown-timeout: 1000ms
timeout: 50000ms # 操作超时时间
datasource:
druid:
# 初始连接数
initial-size: 5
# 最小连接数
min-idle: 15
# 最大连接数
max-active: 500
# 获取连接超时时间
max-wait: 5000
# 连接有效性检测时间
time-between-eviction-runs-millis: 30000
# 连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
# 连接在池中最大生存的时间
max-evictable-idle-time-millis: 900000
# 指明连接是否被空闲连接回收器(如果有)进行检验.如果检测失败,则连接将被从池中去除
test-while-idle: true
# 指明是否在从池中取出连接前进行检验,如果检验失败, 则从池中去除连接并尝试取出另一个
test-on-borrow: true
test-on-return: false
# 是否在归还到池中前进行检验
# 检测连接是否有效
validation-query: SELECT 1
validation-query-timeout: 3
keep-alive: true
connection-init-sqls:
- SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
# 配置监控统计
webStatFilter:
enabled: true
stat-view-servlet:
allow:
enabled: true
# 控制台管理用户名和密码
url-pattern: /druid/*
reset-enable: false
login-username: admin
login-password: 2023
filter:
stat:
enabled: true
# 记录慢SQL
log-slow-sql: false
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
mybatis:
type-aliases-package: com.sztzjy.linkCommerce.entity
mapper-locations: classpath*:/mappers/*.xml
swagger:
enable: false
tokenHeader: Authorization
title: 天择区块链金融 • 接口文档
description: 天择区块链金融WebAPI接口文档
contactName: 深圳天择教育科技有限公司
contactAddress: www.sztzjy.com
version: @project.version@
ai:
qwen:
base-url: https://dashscope.aliyuncs.com/compatible-mode/v1
api-key: ${DASHSCOPE_API_KEY:}
model: qwen-plus
timeout-millis: 60000
ssl:
# 支持https
enabled: true
key-store: classpath:gourd.p12
key-store-password: 123456
key-store-type: pkcs12
key-alias: gourd