blob: 0333eba6fcb82c2d46825eb3a87cebb4b5d8c7fc [file] [log] [blame]
Jiarenxiang25a45b72025-03-13 16:09:13 +08001# 项目相关配置
2ruoyi:
3 # 名称
4 name: TdHub
5 # 版本
6 version: 3.8.8
7 # 版权年份
8 copyrightYear: 2024
9 profile: ./download
10 # 获取ip地址开关
11 addressEnabled: false
12 # 验证码类型 math 数字计算 char 字符验证
13 captchaType: math
14
15# 开发环境配置
16server:
17 # 服务器的HTTP端口,默认为8080
18 port: 8080
19 servlet:
20 # 应用的访问路径
21 context-path: /
22 tomcat:
23 # tomcat的URI编码
24 uri-encoding: UTF-8
25 # 连接数满后的排队数,默认为100
26 accept-count: 1000
27 threads:
28 # tomcat最大线程数,默认为200
29 max: 800
30 # Tomcat启动初始化的线程数,默认值10
31 min-spare: 100
32
33# 日志配置
34logging:
35 level:
36 com.ruoyi: debug
37 org.springframework: warn
38
39# 用户配置
40user:
41 password:
42 # 密码最大错误次数
43 maxRetryCount: 5
44 # 密码锁定时间(默认10分钟)
45 lockTime: 10
46
47# Spring配置
48spring:
49 # 资源信息
50 messages:
51 # 国际化资源文件路径
52 basename: i18n/messages
53 profiles:
54 active: druid
55 # 文件上传
56 servlet:
57 multipart:
58 # 单个文件大小
59 max-file-size: 10MB
60 # 设置总上传的文件大小
61 max-request-size: 20MB
62 # 服务模块
63 devtools:
64 restart:
65 # 热部署开关
66 enabled: true
67 data:
68 # redis 配置
69 redis:
70 # 地址
71 host: localhost
72 # 端口,默认为6379
73 port: 6379
74 # 数据库索引
75 database: 0
76 # 密码
77 password:
78 # 连接超时时间
79 timeout: 10s
80 lettuce:
81 pool:
82 # 连接池中的最小空闲连接
83 min-idle: 0
84 # 连接池中的最大空闲连接
85 max-idle: 8
86 # 连接池的最大数据库连接数
87 max-active: 8
88 # #连接池最大阻塞等待时间(使用负值表示没有限制)
89 max-wait: -1ms
90
91# token配置
92token:
93 # 令牌自定义标识
94 header: Authorization
95 # 令牌密钥
96 secret: abcdefghijklmnopqrstuvwxyz
97 # 令牌有效期(默认30分钟)
98 expireTime: 30
99
100# MyBatis配置
101mybatis:
102 # 搜索指定包别名
103 typeAliasesPackage: com.ruoyi.**.domain
104 # 配置mapper的扫描,找到所有的mapper.xml映射文件
105 mapperLocations: classpath*:mapper/**/*Mapper.xml
106 # 加载全局的配置文件
107 configLocation: classpath:mybatis/mybatis-config.xml
108
109# MyBatis-plus配置
110mybatis-plus:
111 # 搜索指定包别名
112 typeAliasesPackage: com.ruoyi.**.domain
113 # 配置mapper的扫描,找到所有的mapper.xml映射文件
114 mapperLocations: classpath:mapper/*.xml
115 configLocation: classpath:mybatis/mybatis-config.xml
116 # 全局配置
117 global-config:
118 # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
119 id-type: 0
120 # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
121 field-strategy: 2
122 # 驼峰下划线转换
123 db-column-underline: true
124 # 刷新mapper 调试神器
125 refresh-mapper: true
126 # 配置
127 configuration:
128 # 驼峰式命名
129 map-underscore-to-camel-case: true
130 # 全局映射器启用缓存
131 cache-enabled: true
132 # 指定 MyBatis 所用日志的具体实现
133 log-impl: org.slf4j;
134 # 配置默认的执行器
135 default-executor-type: reuse
136 # 允许 JDBC 支持自动生成主键
137 use-generated-keys: true
138
139
140# PageHelper分页插件
141pagehelper:
142 helperDialect: mysql
143 supportMethodsArguments: true
144 params: count=countSql
145
146# Springdoc配置
147springdoc:
148 api-docs:
149 path: /v3/api-docs
150 swagger-ui:
151 enabled: true
152 path: /swagger-ui.html
153 tags-sorter: alpha
154 group-configs:
155 - group: 'default'
156 display-name: '测试模块'
157 paths-to-match: '/**'
158 packages-to-scan: com.ruoyi.web.controller.tool
159
160# 防止XSS攻击
161xss:
162 # 过滤开关
163 enabled: true
164 # 排除链接(多个用逗号分隔)
165 excludes: /system/notice
166 # 匹配链接
167 urlPatterns: /system/*,/monitor/*,/tool/*
168
169# 设置是否调试,调试情况可跳过接口认证
170debug: false