blob: 8c600b8027734559f261cd5825ca650ab67beab1 [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
62 profiles:
63 active: druid
64 # 文件上传
65 servlet:
66 multipart:
67 # 单个文件大小
68 enabled: true
69 max-file-size: 100MB
70 # 设置总上传的文件大小
71 max-request-size: 1024MB
72 # 服务模块
73 devtools:
74 restart:
75 # 热部署开关
76 enabled: true
77 data:
78 # redis 配置
79 redis:
80 # 地址
81 host: redis
82 # 端口,默认为6379
83 port: 6379
84 # 数据库索引
85 database: 0
86 # 密码
87 password:
88 # 连接超时时间
89 timeout: 10s
90 lettuce:
91 pool:
92 # 连接池中的最小空闲连接
93 min-idle: 0
94 # 连接池中的最大空闲连接
95 max-idle: 8
96 # 连接池的最大数据库连接数
97 max-active: 8
98 # #连接池最大阻塞等待时间(使用负值表示没有限制)
99 max-wait: -1ms
100
101# token配置
102token:
103 # 令牌自定义标识
104 header: Authorization
105 # 令牌密钥
106 secret: abcdefghijklmnopqrstuvwxyz
107 # 令牌有效期(默认30分钟)
108 expireTime: 30
109
110### MyBatis配置
111#mybatis:
112# # 搜索指定包别名
113# typeAliasesPackage: com.ruoyi.**.domain
114# # 配置mapper的扫描,找到所有的mapper.xml映射文件
115# mapperLocations: classpath*:mapper/**/*Mapper.xml
116# # 加载全局的配置文件
117# configLocation: classpath:mybatis/mybatis-config.xml
118# configuration:
119# mapUnderscoreToCamelCase: true
120
121
122# MyBatis-plus配置
123mybatis-plus:
124 # 搜索指定包别名
125 typeAliasesPackage: com.ruoyi.**.domain
126 # 配置mapper的扫描,找到所有的mapper.xml映射文件
127 mapperLocations: classpath*:mapper/**/*Mapper.xml
128 configLocation: classpath:mybatis/mybatis-config.xml
129 # 全局配置
130 global-config:
131 # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
132 id-type: 0
133 # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
134 field-strategy: 2
135 # 驼峰下划线转换
136 db-column-underline: true
137 # 刷新mapper 调试神器
138 refresh-mapper: true
139 # 配置
140 configuration:
141 # 驼峰式命名
142 map-underscore-to-camel-case: true
143 # 全局映射器启用缓存
144 cache-enabled: true
145 # 指定 MyBatis 所用日志的具体实现
146 log-impl: org.slf4j;
147 # 配置默认的执行器
148 default-executor-type: reuse
149 # 允许 JDBC 支持自动生成主键
150 use-generated-keys: true
151
152
153# PageHelper分页插件
154pagehelper:
155 helperDialect: mysql
156 supportMethodsArguments: true
157 params: count=countSql
158
159# Springdoc配置
160springdoc:
161 api-docs:
162 path: /v3/api-docs
163 swagger-ui:
164 enabled: true
165 path: /swagger-ui.html
166 tags-sorter: alpha
167 group-configs:
168 - group: 'default'
169 display-name: '测试模块'
170 paths-to-match: '/**'
171 packages-to-scan: com.ruoyi.web.controller.tool
172
173# 防止XSS攻击
174xss:
175 # 过滤开关
176 enabled: true
177 # 排除链接(多个用逗号分隔)
178 excludes: /system/notice
179 # 匹配链接
180 urlPatterns: /system/*,/monitor/*,/tool/*
181
182# 设置是否调试,调试情况可跳过接口认证
183debug: false
184
185