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