Digital Office Automation System Backend
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

application.yml 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi-Vue-Plus
  5. # 版本
  6. version: 4.6.0
  7. # 版权年份
  8. copyrightYear: 2022
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 获取ip地址开关
  12. addressEnabled: true
  13. # 缓存懒加载
  14. cacheLazy: false
  15. captcha:
  16. # 页面 <参数设置> 可开启关闭 验证码校验
  17. # 验证码类型 math 数组计算 char 字符验证
  18. type: MATH
  19. # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰
  20. category: CIRCLE
  21. # 数字验证码位数
  22. numberLength: 1
  23. # 字符验证码长度
  24. charLength: 4
  25. # 开发环境配置
  26. server:
  27. # 服务器的HTTP端口,默认为8080
  28. port: 8080
  29. servlet:
  30. # 应用的访问路径
  31. context-path: /
  32. # undertow 配置
  33. undertow:
  34. # HTTP post内容的最大大小。当值为-1时,默认值为大小是无限的
  35. max-http-post-size: -1
  36. # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
  37. # 每块buffer的空间大小,越小的空间被利用越充分
  38. buffer-size: 512
  39. # 是否分配的直接内存
  40. direct-buffers: true
  41. threads:
  42. # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
  43. io: 8
  44. # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
  45. worker: 256
  46. # 日志配置
  47. logging:
  48. level:
  49. com.ruoyi: debug
  50. org.springframework: warn
  51. config: classpath:logback.xml
  52. # 用户配置
  53. user:
  54. password:
  55. # 密码最大错误次数
  56. maxRetryCount: 5
  57. # 密码锁定时间(默认10分钟)
  58. lockTime: 10
  59. # Spring配置
  60. spring:
  61. application:
  62. name: ${ruoyi.name}
  63. # 资源信息
  64. messages:
  65. # 国际化资源文件路径
  66. basename: i18n/messages
  67. profiles:
  68. active: dev
  69. # 文件上传
  70. servlet:
  71. multipart:
  72. # 单个文件大小
  73. max-file-size: 10MB
  74. # 设置总上传的文件大小
  75. max-request-size: 20MB
  76. # 服务模块
  77. devtools:
  78. restart:
  79. # 热部署开关
  80. enabled: true
  81. mvc:
  82. format:
  83. date-time: yyyy-MM-dd HH:mm:ss
  84. jackson:
  85. # 日期格式化
  86. date-format: yyyy-MM-dd HH:mm:ss
  87. serialization:
  88. # 格式化输出
  89. indent_output: false
  90. # 忽略无法转换的对象
  91. fail_on_empty_beans: false
  92. deserialization:
  93. # 允许对象忽略json中不存在的属性
  94. fail_on_unknown_properties: false
  95. # Sa-Token配置
  96. sa-token:
  97. # token名称 (同时也是cookie名称)
  98. token-name: Authorization
  99. # token有效期 设为一天 (必定过期) 单位: 秒
  100. timeout: 86400
  101. # token临时有效期 (指定时间无操作就过期) 单位: 秒
  102. activity-timeout: 1800
  103. # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
  104. is-concurrent: true
  105. # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
  106. is-share: false
  107. # 是否尝试从header里读取token
  108. is-read-header: true
  109. # 是否尝试从cookie里读取token
  110. is-read-cookie: false
  111. # token前缀
  112. token-prefix: "Bearer"
  113. # jwt秘钥
  114. jwt-secret-key: abcdefghijklmnopqrstuvwxyz
  115. # security配置
  116. security:
  117. # 排除路径
  118. excludes:
  119. # 静态资源
  120. - /*.html
  121. - /**/*.html
  122. - /**/*.css
  123. - /**/*.js
  124. # 公共路径
  125. - /favicon.ico
  126. - /error
  127. # swagger 文档配置
  128. - /*/api-docs
  129. - /*/api-docs/**
  130. # actuator 监控配置
  131. - /actuator
  132. - /actuator/**
  133. # MyBatisPlus配置
  134. # https://baomidou.com/config/
  135. mybatis-plus:
  136. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
  137. # 例如 com.**.**.mapper
  138. mapperPackage: com.ruoyi.**.mapper
  139. # 对应的 XML 文件位置
  140. mapperLocations: classpath*:mapper/**/*Mapper.xml
  141. # 实体扫描,多个package用逗号或者分号分隔
  142. typeAliasesPackage: com.ruoyi.**.domain
  143. # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
  144. checkConfigLocation: false
  145. configuration:
  146. # 自动驼峰命名规则(camel case)映射
  147. mapUnderscoreToCamelCase: true
  148. # MyBatis 自动映射策略
  149. # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
  150. autoMappingBehavior: PARTIAL
  151. # MyBatis 自动映射时未知列或未知属性处理策
  152. # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
  153. autoMappingUnknownColumnBehavior: NONE
  154. # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
  155. # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
  156. # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
  157. logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  158. global-config:
  159. # 是否打印 Logo banner
  160. banner: true
  161. dbConfig:
  162. # 主键类型
  163. # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
  164. idType: ASSIGN_ID
  165. # 逻辑已删除值
  166. logicDeleteValue: 2
  167. # 逻辑未删除值
  168. logicNotDeleteValue: 0
  169. # 字段验证策略之 insert,在 insert 的时候的字段验证策略
  170. # IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
  171. insertStrategy: NOT_NULL
  172. # 字段验证策略之 update,在 update 的时候的字段验证策略
  173. updateStrategy: NOT_NULL
  174. # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
  175. where-strategy: NOT_NULL
  176. # 数据加密
  177. mybatis-encryptor:
  178. # 是否开启加密
  179. enable: false
  180. # 默认加密算法
  181. algorithm: BASE64
  182. # 编码方式 BASE64/HEX。默认BASE64
  183. encode: BASE64
  184. # 安全秘钥 对称算法的秘钥 如:AES,SM4
  185. password:
  186. # 公私钥 非对称算法的公私钥 如:SM2,RSA
  187. publicKey:
  188. privateKey:
  189. # Swagger配置
  190. swagger:
  191. info:
  192. # 标题
  193. title: '标题:${ruoyi.name}后台管理系统_接口文档'
  194. # 描述
  195. description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...'
  196. # 版本
  197. version: '版本号: 4.6.0'
  198. # 作者信息
  199. contact:
  200. name: Lion Li
  201. email: crazylionli@163.com
  202. url: https://gitee.com/JavaLionLi/RuoYi-Vue-Plus
  203. components:
  204. # 鉴权方式配置
  205. security-schemes:
  206. apiKey:
  207. type: APIKEY
  208. in: HEADER
  209. name: ${sa-token.token-name}
  210. springdoc:
  211. api-docs:
  212. # 是否开启接口文档
  213. enabled: true
  214. swagger-ui:
  215. # 持久化认证数据
  216. persistAuthorization: true
  217. #这里定义了两个分组,可定义多个,也可以不定义
  218. group-configs:
  219. - group: 1.演示模块
  220. packages-to-scan: com.ruoyi.demo
  221. - group: 2.系统模块
  222. packages-to-scan: com.ruoyi.web
  223. - group: 3.代码生成模块
  224. packages-to-scan: com.ruoyi.generator
  225. # 防止XSS攻击
  226. xss:
  227. # 过滤开关
  228. enabled: true
  229. # 排除链接(多个用逗号分隔)
  230. excludes: /system/notice
  231. # 匹配链接
  232. urlPatterns: /system/*,/monitor/*,/tool/*
  233. # 全局线程池相关配置
  234. thread-pool:
  235. # 是否开启线程池
  236. enabled: false
  237. # 队列最大长度
  238. queueCapacity: 128
  239. # 线程池维护线程所允许的空闲时间
  240. keepAliveSeconds: 300
  241. --- # 分布式锁 lock4j 全局配置
  242. lock4j:
  243. # 获取分布式锁超时时间,默认为 3000 毫秒
  244. acquire-timeout: 3000
  245. # 分布式锁的超时时间,默认为 30 秒
  246. expire: 30000
  247. --- # Actuator 监控端点的配置项
  248. management:
  249. endpoints:
  250. web:
  251. exposure:
  252. include: '*'
  253. endpoint:
  254. health:
  255. show-details: ALWAYS
  256. logfile:
  257. external-file: ./logs/sys-console.log