application.yml 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: xmhjc
  5. # 版本
  6. version: 3.8.5
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: true
  11. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  12. profile: D:/ruoyi/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 9898
  21. tomcat:
  22. # tomcat的URI编码
  23. uri-encoding: UTF-8
  24. # 连接数满后的排队数,默认为100
  25. accept-count: 1000
  26. threads:
  27. # tomcat最大线程数,默认为200
  28. max: 800
  29. # Tomcat启动初始化的线程数,默认值10
  30. min-spare: 100
  31. # 日志配置
  32. logging:
  33. level:
  34. com.ruoyi: info
  35. com.fjhx: info
  36. org.springframework: warn
  37. # 用户配置
  38. user:
  39. password:
  40. # 密码最大错误次数
  41. maxRetryCount: 5
  42. # 密码锁定时间(默认10分钟)
  43. lockTime: 10
  44. # Spring配置
  45. spring:
  46. mvc:
  47. path-match:
  48. matching-strategy: ant_path_matcher
  49. # 资源信息
  50. messages:
  51. # 国际化资源文件路径
  52. basename: i18n/messages
  53. profiles:
  54. active: dev
  55. # 文件上传
  56. servlet:
  57. multipart:
  58. # 单个文件大小
  59. max-file-size: 100MB
  60. # 设置总上传的文件大小
  61. max-request-size: 200MB
  62. main:
  63. allow-circular-references: true
  64. autoconfigure:
  65. # 排除 Druid 自动配置
  66. exclude: com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure
  67. datasource:
  68. # 指定使用 Druid 数据源
  69. type: com.alibaba.druid.pool.DruidDataSource
  70. dynamic:
  71. druid:
  72. # 初始连接数
  73. initialSize: 3
  74. # 最小连接池数量
  75. minIdle: 10
  76. # 最大连接池数量
  77. maxActive: 100
  78. # 配置获取连接等待超时的时间
  79. maxWait: 60000
  80. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  81. timeBetweenEvictionRunsMillis: 60000
  82. # 配置一个连接在池中最小生存的时间,单位是毫秒
  83. minEvictableIdleTimeMillis: 300000
  84. # 配置一个连接在池中最大生存的时间,单位是毫秒
  85. maxEvictableIdleTimeMillis: 900000
  86. validationQueryTimeout: 10000
  87. # 配置检测连接是否有效
  88. validationQuery: SELECT 1
  89. testWhileIdle: true
  90. testOnBorrow: false
  91. testOnReturn: false
  92. poolPreparedStatements: true
  93. maxPoolPreparedStatementPerConnectionSize: 20
  94. druid:
  95. webStatFilter:
  96. enabled: true
  97. exclusions:
  98. - "*.js"
  99. - "/druid/*"
  100. statViewServlet:
  101. enabled: true
  102. # 设置白名单,不填则允许所有访问
  103. allow:
  104. urlPattern: /druid/*
  105. # 控制台管理用户名和密码
  106. loginUsername: superAdmin
  107. loginPassword: 123456
  108. filter:
  109. # 配置StatFilter (SQL监控配置)
  110. stat:
  111. enabled: true # 开启 SQL 监控
  112. logSlowSql: true # 记录慢查询 SQL
  113. slowSqlMillis: 1000 # 多长时间算慢查询
  114. mergeSql: true # 条件参数化作为一条sql统计
  115. # 配置WallFilter (防火墙配置)
  116. wall:
  117. enabled: true # 开启防火墙
  118. config:
  119. dropTableAllow: true # 允许删表操作
  120. updateAllow: true # 允许更新操作
  121. insertAllow: true # 允许插入操作
  122. deleteAllow: true # 允许删除操作
  123. multiStatementAllow: true # 支持一次执行多条sql
  124. # MyBatis Plus配置
  125. mybatis-plus:
  126. # 搜索指定包别名
  127. typeAliasesPackage: com.ruoyi.**.domain,com.fjhx.**.entity.po
  128. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  129. mapperLocations: classpath*:mapper/**/*Mapper.xml
  130. # 加载全局的配置文件
  131. configLocation: classpath:mybatis/mybatis-config.xml
  132. global-config:
  133. banner: false
  134. ## PageHelper分页插件
  135. #page-helper:
  136. # helperDialect: mysql
  137. # supportMethodsArguments: true
  138. # params: count=countSql
  139. # 防止XSS攻击
  140. xss:
  141. # 过滤开关
  142. enabled: true
  143. # 排除链接(多个用逗号分隔)
  144. excludes: /system/notice
  145. # 匹配链接
  146. urlPatterns: /system/*,/monitor/*,/tool/*
  147. obs:
  148. #huawei / tencent
  149. type: tencent
  150. region: ap-shanghai
  151. uploadMethod: back
  152. #secretId
  153. ak: AKIDmPqHhzAHM9sSwFd4dHpIm9MNBnMnIk7T
  154. #secretKey
  155. sk: XBjFf1Lc1VM3b1IRtHPKIRZhyCYqDf1G
  156. endPoint: cos.ap-shanghai.myqcloud.com
  157. url: https://xmhjc-1322241475.cos.ap-shanghai.myqcloud.com/
  158. bucketName: xmhjc-1322241475