Files
piaowu/ruoyi-piao/src/main/resources/application.yml
T
2026-06-12 11:48:17 +08:00

288 lines
7.7 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.
# 项目相关配置
ruoyi:
# 名称
name: RuoYi
# 版本
version: 3.9.2
# 版权年份
copyrightYear: 2026
# 文件路径 示例( Windows配置D:/ruoyi/uploadPathLinux配置 /home/ruoyi/uploadPath
profile: D:/ruoyi/uploadPath
# 获取ip地址开关
addressEnabled: false
# 验证码类型 math 数字计算 char 字符验证
captchaType: math
# 开发环境配置
server:
# 服务器的HTTP端口,默认为8080
port: 1024
servlet:
# 应用的访问路径
context-path: /
tomcat:
# tomcat的URI编码
uri-encoding: UTF-8
# 连接数满后的排队数,默认为100
accept-count: 1000
threads:
# tomcat最大线程数,默认为200
max: 800
# Tomcat启动初始化的线程数,默认值10
min-spare: 100
# 日志配置
logging:
level:
com.ruoyi: error
org.springframework: warn
com.ruoyi.piao: debug
org.quartz: WARN
org.springframework.scheduling.quartz: WARN
org.hibernate.validator: WARN
org.apache.catalina: OFF
org.apache.tomcat: OFF
org.springframework.boot.web.embedded.tomcat: WARN
org.apache.coyote.http11: ERROR
# com.alibaba.druid: WARN
# 用户配置
user:
password:
# 密码最大错误次数
maxRetryCount: 5
# 密码锁定时间(默认10分钟)
lockTime: 10
# Spring配置
spring:
# 允许循环依赖(兼容旧代码)
main:
allow-circular-references: true
# 数据源配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driverClassName: com.mysql.cj.jdbc.Driver
druid:
# 主库数据源
master:
url: jdbc:mysql://localhost:3306/piaowu?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
username: root
password: root
# 从库数据源
slave:
# 从数据源开关/默认关闭
enabled: false
url:
username:
password:
# 初始连接数
initialSize: 5
# 最小连接池数量
minIdle: 10
# 最大连接池数量
maxActive: 20
# 配置获取连接等待超时的时间
maxWait: 60000
# 配置连接超时时间
connectTimeout: 30000
# 配置网络超时时间
socketTimeout: 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: mysqldruid
login-password: Gms&123buqu!@#
filter:
stat:
enabled: true
# 慢SQL记录
log-slow-sql: false
slow-sql-millis: 1000
merge-sql: true
wall:
config:
multi-statement-allow: true
# 资源信息
messages:
# 国际化资源文件路径
basename: i18n/messages
profiles:
active: druid
# 文件上传
servlet:
multipart:
# 单个文件大小
max-file-size: 20MB
# 设置总上传的文件大小
max-request-size: 20MB
# 服务模块
devtools:
restart:
# 热部署开关
enabled: true
ai:
openai:
api-key: ${DEEPSEEK_API_KEY:sk-f2c1556b69bc40d489a3eeeb6a248e43}
base-url: https://api.deepseek.com
chat:
options:
model: deepseek-chat
jackson:
time-zone: Asia/Shanghai
mail:
host: smtp.qiye.aliyun.com
port: 465
username: info@rszhihui.com
password: oBcbUmDBh5p1A4eJ
protocol: smtp
default-encoding: UTF-8
properties:
mail:
smtp:
auth: true
ssl:
enable: true
socketFactory:
port: 465
class: javax.net.ssl.SSLSocketFactory
fallback: false
connectiontimeout: 20000
timeout: 20000
writetimeout: 20000
data:
redis:
host: localhost
port: 6379
database: 0
password: rds234
alimail:
default_bearer: 12345678987654321
sender: info@rszhihui.com
reply: info@rszhihui.com
alias: 智汇平台通知信息
defaultto: 344656718@qq.com
testto: 344656718@qq.com
alisms:
default_phone:
test_phone:
default_bearer: 12345678987654321
access_key_id: LTAI5tJvTU7vg1KSQtJS95nw
access_key_secret: CiCQcmjCI81XwLbQW4RkE4lvfuAeoU
default_sign_name: 北京融硕智汇科技
default_template_code: SMS_501981069
alivms:
access_key_id: LTAI5tJvTU7vg1KSQtJS95nw
access_key_secret: CiCQcmjCI81XwLbQW4RkE4lvfuAeoU
# token配置
token:
# 令牌自定义标识
header: Authorization
# 令牌密钥
secret: abcdefghijklmnopqrstuvwxyz
# 令牌有效期(默认30分钟)
expireTime: 1440
# MyBatis-Plus 配置
mybatis-plus:
# 指定实体类所在包的路径,MyBatis-Plus 会自动扫描该路径下的实体类
typeAliasesPackage: com.ruoyi.**.domain
# 指定 Mapper 接口所在包的路径,MyBatis-Plus 会自动扫描该路径下的 Mapper 接口
mapperLocations: classpath*:mapper/**/*Mapper.xml
configuration:
# 在映射实体或者属性时,将数据库中表名和字段名中的下划线去掉,按照驼峰命名法映射
map-underscore-to-camel-case: true
# 全局缓存
cache-enabled: true
# 允许 JDBC 支持自动生成主键
use-generated-keys: true
# 配置默认的执行器(SIMPLE、REUSE、BATCH
default-executor-type: simple
# 日志实现
log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
#org.apache.ibatis.logging.stdout.StdOutImpl
global-config:
db-config:
id-type: AUTO
# PageHelper分页插件
pagehelper:
helperDialect: mysql
supportMethodsArguments: true
params: count=countSql
# SpringDoc配置
springdoc:
# 是否开启springdoc
enabled: true
# 请求前缀
pathMapping: /dev-api
# 扫描包路径
packages-to-scan: com.ruoyi.web.controller
# 防止XSS攻击
xss:
# 过滤开关
enabled: true
# 排除链接(多个用逗号分隔)
excludes: /system/notice
# 匹配链接
urlPatterns: /system/*,/monitor/*,/tool/*
# Referer 防盗链配置
referer:
# 是否开启
enabled: false
# 允许访问的域名列表(多个用逗号分隔)
allowed-domains: '*'
ota:
qunar:
seccode: 'rongshuo'
domain: '.trade.qunar.com'
test: true
json: D:/Home/piaoruo/ruoyi-piao/src/main/resources/json/
app:
key: baef662549367303e69046a01f8949c1
token: a6f48e4e8abe1349f49a20bb30e1b4b0
api:
url: https://apiqae.qunar.com/api/router
ctrip:
appkey: 'c7bf422720ef3530'
appsecret: 'b090ce975c51fe503ea6e57645e440bb793c31e1ee16e9cec60225d66f41df6b'
miyao: 'E2AA965505A762774AA486E160EEBCAC'
zhihui:
domain: 'http://localhost:1024'
wsserver: 'ws://localhost:1040'
wsdir: 'c:/zhihui/daily'
robotuid: 1
airline:
order: 'http://localhost:1030/air/order'
fly:
name: Air Fly
base-path: d:/airfly/
token: 'ZfOeS2YX9IStsHx-3-C4u47K2mB3qzryXWl__p7ITIn9OpuP83FYN_IAlr2_P6NL_a5f53YQ4UD1koJUjcW4eaQhyV6yYi0nz4LhRTTPhS7FvjFOHijeC6uXIAALKOnbjADFZf3lwTRl8J5fK50MTyKsyxPcJ-gRpKafV_f5ztb7cqx994B6aw9RK8tvtD7b4asPrPrhCHsM2ax_NWLv0A**4641'
version: 1.0
dify:
route-url: http://101.126.159.1/v1/chat-messages
route-key: app-bIAzdQfv7fCWxPbSrBGdFwfb