提交 | 用户 | 时间
|
a6316e
|
1 |
# 项目相关配置 |
A |
2 |
ruoyi: |
|
3 |
# 名称 |
|
4 |
name: RuoYi |
|
5 |
# 版本 |
|
6 |
version: 3.8.8 |
|
7 |
# 版权年份 |
|
8 |
copyrightYear: 2024 |
|
9 |
# 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) |
|
10 |
profile: D:/ruoyi/uploadPath |
|
11 |
# 获取ip地址开关 |
|
12 |
addressEnabled: false |
|
13 |
# 验证码类型 math 数字计算 char 字符验证 |
|
14 |
captchaType: math |
|
15 |
|
|
16 |
# 开发环境配置 |
|
17 |
server: |
|
18 |
# 服务器的HTTP端口,默认为8080 |
|
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 |
|
|
34 |
# 日志配置 |
|
35 |
logging: |
|
36 |
level: |
|
37 |
com.billion: debug |
|
38 |
org.springframework: warn |
|
39 |
|
|
40 |
# 用户配置 |
|
41 |
user: |
|
42 |
password: |
|
43 |
# 密码最大错误次数 |
|
44 |
maxRetryCount: 5 |
|
45 |
# 密码锁定时间(默认10分钟) |
|
46 |
lockTime: 10 |
|
47 |
|
|
48 |
# Spring配置 |
|
49 |
spring: |
|
50 |
# 资源信息 |
|
51 |
messages: |
|
52 |
# 国际化资源文件路径 |
|
53 |
basename: i18n/messages |
|
54 |
profiles: |
|
55 |
active: druid |
|
56 |
# 文件上传 |
|
57 |
servlet: |
|
58 |
multipart: |
|
59 |
# 单个文件大小 |
|
60 |
max-file-size: 10MB |
|
61 |
# 设置总上传的文件大小 |
|
62 |
max-request-size: 20MB |
|
63 |
# 服务模块 |
|
64 |
devtools: |
|
65 |
restart: |
|
66 |
# 热部署开关 |
|
67 |
enabled: true |
|
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配置 |
|
92 |
token: |
|
93 |
# 令牌自定义标识 |
|
94 |
header: Authorization |
|
95 |
# 令牌密钥 |
|
96 |
secret: abcdefghijklmnopqrstuvwxyz |
|
97 |
# 令牌有效期(默认30分钟) |
|
98 |
expireTime: 30 |
|
99 |
|
|
100 |
# MyBatis配置 |
|
101 |
#mybatis: |
|
102 |
# # 搜索指定包别名 |
|
103 |
# typeAliasesPackage: com.billion.**.domain |
|
104 |
# # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
|
105 |
# mapperLocations: classpath*:mapper/**/*Mapper.xml |
|
106 |
# # 加载全局的配置文件 |
|
107 |
# configLocation: classpath:mybatis/mybatis-config.xml |
|
108 |
|
d146c0
|
109 |
## MyBatis Plus配置 |
W |
110 |
#mybatis-plus: |
|
111 |
# # 搜索指定包别名 |
|
112 |
# typeAliasesPackage: com.billion.**.domain |
|
113 |
# # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
|
114 |
# mapperLocations: classpath*:mapper/**/*Mapper.xml |
|
115 |
# # 加载全局的配置文件 |
|
116 |
# configLocation: classpath:mybatis/mybatis-config.xml |
|
117 |
|
a6316e
|
118 |
mybatis-plus: |
d146c0
|
119 |
# 对应的 XML 文件位置 |
a6316e
|
120 |
mapperLocations: classpath*:mapper/**/*Mapper.xml |
d146c0
|
121 |
typeAliasesPackage: com.billion.**.domain |
W |
122 |
checkConfigLocation: false |
|
123 |
executorType: SIMPLE |
|
124 |
configuration: |
|
125 |
mapUnderscoreToCamelCase: true |
|
126 |
defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler |
|
127 |
aggressiveLazyLoading: true |
|
128 |
autoMappingBehavior: PARTIAL |
|
129 |
autoMappingUnknownColumnBehavior: NONE |
|
130 |
localCacheScope: SESSION |
|
131 |
# 开启Mybatis二级缓存,默认为 true |
|
132 |
cacheEnabled: true |
|
133 |
global-config: |
|
134 |
banner: true |
|
135 |
enableSqlRunner: false |
|
136 |
dbConfig: |
|
137 |
idType: AUTO |
|
138 |
tablePrefix: null |
|
139 |
columnFormat: null |
|
140 |
tableUnderline: true |
|
141 |
capitalMode: false |
|
142 |
logicDeleteField: deleted |
|
143 |
# 逻辑已删除值 |
|
144 |
logicDeleteValue: 1 |
|
145 |
# 逻辑未删除值 |
|
146 |
logicNotDeleteValue: 0 |
|
147 |
insertStrategy: NOT_NULL |
|
148 |
updateStrategy: NOT_NULL |
|
149 |
|
a6316e
|
150 |
|
A |
151 |
# PageHelper分页插件 |
|
152 |
pagehelper: |
|
153 |
helperDialect: mysql |
|
154 |
supportMethodsArguments: true |
|
155 |
params: count=countSql |
|
156 |
|
|
157 |
# Swagger配置 |
|
158 |
swagger: |
|
159 |
# 是否开启swagger |
|
160 |
enabled: true |
|
161 |
# 请求前缀 |
|
162 |
pathMapping: /dev-api |
|
163 |
|
|
164 |
# 防止XSS攻击 |
|
165 |
xss: |
|
166 |
# 过滤开关 |
|
167 |
enabled: true |
|
168 |
# 排除链接(多个用逗号分隔) |
|
169 |
excludes: /system/notice |
|
170 |
# 匹配链接 |
|
171 |
urlPatterns: /system/*,/monitor/*,/tool/* |