2026-01-09 20:13:01 +08:00
|
|
|
|
# 项目相关配置
|
|
|
|
|
|
ruoyi:
|
|
|
|
|
|
# 名称
|
|
|
|
|
|
name: RuoYi
|
|
|
|
|
|
# 版本
|
|
|
|
|
|
version: 3.8.8
|
|
|
|
|
|
# 版权年份
|
|
|
|
|
|
copyrightYear: 2024
|
|
|
|
|
|
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
|
|
|
|
|
|
profile: D:/ruoyi/uploadPath
|
|
|
|
|
|
# 获取ip地址开关
|
|
|
|
|
|
addressEnabled: false
|
|
|
|
|
|
# 验证码类型 math 数字计算 char 字符验证
|
|
|
|
|
|
captchaType: math
|
|
|
|
|
|
|
|
|
|
|
|
# 开发环境配置
|
|
|
|
|
|
server:
|
|
|
|
|
|
# 服务器的HTTP端口,默认为8080
|
|
|
|
|
|
port: 9091
|
|
|
|
|
|
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: debug
|
|
|
|
|
|
org.springframework: warn
|
|
|
|
|
|
|
|
|
|
|
|
# 用户配置
|
|
|
|
|
|
user:
|
|
|
|
|
|
password:
|
|
|
|
|
|
# 密码最大错误次数
|
|
|
|
|
|
maxRetryCount: 5
|
|
|
|
|
|
# 密码锁定时间(默认10分钟)
|
|
|
|
|
|
lockTime: 10
|
|
|
|
|
|
|
|
|
|
|
|
# Spring配置
|
|
|
|
|
|
spring:
|
|
|
|
|
|
# 资源信息
|
|
|
|
|
|
messages:
|
|
|
|
|
|
# 国际化资源文件路径
|
|
|
|
|
|
basename: i18n/messages
|
|
|
|
|
|
profiles:
|
|
|
|
|
|
active: local
|
|
|
|
|
|
# 文件上传
|
|
|
|
|
|
servlet:
|
|
|
|
|
|
multipart:
|
|
|
|
|
|
# 单个文件大小
|
|
|
|
|
|
max-file-size: 10MB
|
|
|
|
|
|
# 设置总上传的文件大小
|
|
|
|
|
|
max-request-size: 20MB
|
|
|
|
|
|
# 服务模块
|
|
|
|
|
|
devtools:
|
|
|
|
|
|
restart:
|
|
|
|
|
|
# 热部署开关
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
# redis 配置
|
|
|
|
|
|
# token配置
|
|
|
|
|
|
token:
|
|
|
|
|
|
# 令牌自定义标识
|
|
|
|
|
|
header: Authorization
|
|
|
|
|
|
# 令牌密钥
|
|
|
|
|
|
secret: Abc123!@#Def456$%^Ghi789&*()Jkl0+-=MnoPqrStuVwxYz987$%^654@#$321!@#ZyxWvu
|
|
|
|
|
|
# 令牌有效期(默认30分钟)
|
|
|
|
|
|
expireTime: 30
|
|
|
|
|
|
|
|
|
|
|
|
## MyBatis配置
|
|
|
|
|
|
#mybatis:
|
|
|
|
|
|
# # 搜索指定包别名
|
|
|
|
|
|
# typeAliasesPackage: com.ruoyi.**.domain
|
|
|
|
|
|
# # 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
|
|
|
# mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
|
|
|
|
# # 加载全局的配置文件
|
|
|
|
|
|
# configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
|
|
|
|
|
|
|
# PageHelper分页插件
|
|
|
|
|
|
pagehelper:
|
|
|
|
|
|
helperDialect: oracle
|
|
|
|
|
|
supportMethodsArguments: true
|
|
|
|
|
|
params: count=countSql
|
|
|
|
|
|
|
|
|
|
|
|
# Swagger配置
|
|
|
|
|
|
swagger:
|
|
|
|
|
|
# 是否开启swagger
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
# 请求前缀
|
|
|
|
|
|
pathMapping:
|
|
|
|
|
|
|
|
|
|
|
|
# 防止XSS攻击
|
|
|
|
|
|
xss:
|
|
|
|
|
|
# 过滤开关
|
|
|
|
|
|
enabled: true
|
|
|
|
|
|
# 排除链接(多个用逗号分隔)
|
|
|
|
|
|
excludes: /system/notice
|
|
|
|
|
|
# 匹配链接
|
|
|
|
|
|
urlPatterns: /system/*,/monitor/*,/tool/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
createSqlSessionFactory:
|
|
|
|
|
|
# 选择MyBatis配置方式,mybatis / mybatis-plus
|
|
|
|
|
|
use: mybatis-plus
|
|
|
|
|
|
|
|
|
|
|
|
# MyBatis配置
|
|
|
|
|
|
mybatis:
|
|
|
|
|
|
# 搜索指定包别名
|
|
|
|
|
|
typeAliasesPackage: com.ruoyi.**.domain
|
|
|
|
|
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
|
|
|
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
|
|
|
|
# 加载全局的配置文件
|
|
|
|
|
|
configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
|
|
|
|
|
|
|
# MyBatis Plus配置
|
|
|
|
|
|
mybatis-plus:
|
|
|
|
|
|
# 搜索指定包别名
|
|
|
|
|
|
typeAliasesPackage: com.ruoyi.**.domain
|
|
|
|
|
|
# 配置mapper的扫描,找到所有的mapper.xml映射文件
|
|
|
|
|
|
mapperLocations: classpath*:mapper/**/*Mapper.xml
|
|
|
|
|
|
# 加载全局的配置文件
|
|
|
|
|
|
configLocation: classpath:mybatis/mybatis-config.xml
|
|
|
|
|
|
global-config:
|
|
|
|
|
|
db-config:
|
|
|
|
|
|
# 标识逻辑删除的数据库字段名称
|
|
|
|
|
|
logic-delete-field: delFlag
|
|
|
|
|
|
# 表示已逻辑删除的值(默认也是如此)
|
|
|
|
|
|
logic-delete-value: 2
|
|
|
|
|
|
# 表示未逻辑删除的值(默认也是如此)
|
|
|
|
|
|
logic-not-delete-value: 0
|
|
|
|
|
|
|
|
|
|
|
|
file:
|
|
|
|
|
|
upload-dir: /data/file
|
|
|
|
|
|
|
|
|
|
|
|
#微信小程序
|
|
|
|
|
|
wx:
|
2026-01-09 20:14:10 +08:00
|
|
|
|
appid: wx99193c507b93d6db
|
|
|
|
|
|
secret: 79bf8648880746c11f9ef9c5c12e030f
|
2026-01-09 20:13:01 +08:00
|
|
|
|
|
|
|
|
|
|
#统一门户认证
|
|
|
|
|
|
oauth:
|
|
|
|
|
|
#客户端的ID
|
|
|
|
|
|
appid: 251112100000000015
|
|
|
|
|
|
#授权码
|
|
|
|
|
|
clientsecretkey: 2a44cb8d21dcf4b0777881ca11ea0d83ebea94bbe1ab1f405508db0873cdcc99
|
|
|
|
|
|
#内网
|
|
|
|
|
|
usptnw:
|
|
|
|
|
|
#获取访问令牌
|
2026-01-09 20:14:10 +08:00
|
|
|
|
nwGatewayGetTokenUrl: http://ip:80/uspt/serviceAPI/getToken
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取用户信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
nwGatewayGetUserInfoUrl: http://ip:80/uspt/serviceAPI/getUserInfo
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#外网
|
|
|
|
|
|
usptww:
|
|
|
|
|
|
#门户注册
|
2026-01-09 20:14:10 +08:00
|
|
|
|
wwRegisterPostUrl: http://ip:80/uspt/webWhiteListServiceAPI/doWebRegister
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#门户登录
|
2026-01-09 20:14:10 +08:00
|
|
|
|
wwTokenPostUrl: http://ip:80/uspt/webWhiteListServiceAPI/doWebLogon
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#查询用户信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
wwQueryWebUserInfo: http://ip:80/uspt/webWhiteListServiceAPI/queryWebUserInfo
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#查询个人信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
wwQueryWebPersonalInfoPostUrl: http://ip:80/uspt/webWhiteListServiceAPI/queryWebPersonalInfo
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#查询单位信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
wwQueryWebEnterpriseInfoPostUrl: http://ip:80/uspt//webWhiteListServiceAPI/queryWebEnterpriseInfo
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#用户新增接口
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyAddUserUrl: http://ip:80/qxgl_backend/security/add_user
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取当前用户有权系统列表
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyQueryUserSysListUrl: http://ip:80/qxgl_backend/security/get_effective_app_list
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取当前用户有权角色列表
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyQueryUserRoleListUrl: http://ip:80/qxgl_backend/security/get_role_by_userid
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取角色功能权限信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyQueryRoleInfoUrl: http://ip:80/qxgl_backend/security/get_path_by_role
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取用户详细信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyQueryUserInfo: http://ip:80/qxgl_backend/security/get_user_by_userid
|
2026-01-09 20:13:01 +08:00
|
|
|
|
#获取机构详细信息
|
2026-01-09 20:14:10 +08:00
|
|
|
|
tyQueryUnitInfo: http://ip:80/qxgl_backend/security/get_organization_by_organizationid
|
2026-01-09 20:13:01 +08:00
|
|
|
|
connect-timeout: 10
|
|
|
|
|
|
read-timeout: 30
|
|
|
|
|
|
write-timeout: 30
|
|
|
|
|
|
|
2026-01-09 21:14:52 +08:00
|
|
|
|
|