application.yml 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: YiQi
  5. # 版本
  6. version: 1.0.0
  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. env: dev
  18. baseUrl: https://yiqi-test.xhmiracle.com
  19. # 腾讯云存储地址
  20. cosBucket: XXX
  21. cosSecretId: XXX
  22. cosSecretKey: XXX
  23. cosBaseUrl: XXX
  24. # 开发环境配置
  25. server:
  26. # 服务器的HTTP端口,默认为9802
  27. port: 9802
  28. servlet:
  29. # 应用的访问路径
  30. context-path: /
  31. tomcat:
  32. # tomcat的URI编码
  33. uri-encoding: UTF-8
  34. # 连接数满后的排队数,默认为100
  35. accept-count: 1000
  36. threads:
  37. # tomcat最大线程数,默认为200
  38. max: 200
  39. # Tomcat启动初始化的线程数,默认值10
  40. min-spare: 100
  41. workId: 1
  42. datacenterId: 1
  43. # 日志配置
  44. logging:
  45. level:
  46. com.ruoyi: debug
  47. org.springframework: warn
  48. # 用户配置
  49. user:
  50. password:
  51. # 密码最大错误次数
  52. maxRetryCount: 5
  53. # 密码锁定时间(默认10分钟)
  54. lockTime: 10
  55. # Spring配置
  56. spring:
  57. # 环境 dev|test|prod
  58. profiles:
  59. # active: @profileActive@
  60. active: dev
  61. # jackson时间格式化
  62. jackson:
  63. default-property-inclusion: NON_NULL
  64. time-zone: GMT+8
  65. date-format: yyyy-MM-dd HH:mm:ss
  66. serialization:
  67. WRITE_NULL_MAP_VALUES: false
  68. INDENT_OUTPUT: true
  69. # 资源信息
  70. messages:
  71. # 国际化资源文件路径
  72. basename: i18n/messages
  73. datasource:
  74. type: com.alibaba.druid.pool.DruidDataSource
  75. driverClassName: com.mysql.cj.jdbc.Driver
  76. druid:
  77. # 主库数据源
  78. master:
  79. url: jdbc:mysql://127.0.0.1:3306/yiqi_wash?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  80. username: yiqi_wash
  81. password: yiqi_wash%2024
  82. # 从库数据源
  83. slave:
  84. # 从数据源开关/默认关闭
  85. enabled: false
  86. url:
  87. username:
  88. password:
  89. # 初始连接数
  90. initialSize: 50
  91. # 最小连接池数量
  92. minIdle: 50
  93. # 最大连接池数量
  94. maxActive: 200
  95. # 配置获取连接等待超时的时间
  96. maxWait: 60000
  97. # 配置连接超时时间
  98. connectTimeout: 30000
  99. # 配置网络超时时间
  100. socketTimeout: 60000
  101. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  102. timeBetweenEvictionRunsMillis: 60000
  103. # 配置一个连接在池中最小生存的时间,单位是毫秒
  104. minEvictableIdleTimeMillis: 300000
  105. # 配置一个连接在池中最大生存的时间,单位是毫秒
  106. maxEvictableIdleTimeMillis: 900000
  107. # 配置检测连接是否有效
  108. validationQuery: SELECT 1 FROM DUAL
  109. testWhileIdle: true
  110. testOnBorrow: false
  111. testOnReturn: false
  112. webStatFilter:
  113. enabled: true
  114. statViewServlet:
  115. enabled: true
  116. # 设置白名单,不填则允许所有访问
  117. allow:
  118. url-pattern: /druid/*
  119. # 控制台管理用户名和密码
  120. login-username: ruoyi
  121. login-password: 123456
  122. filter:
  123. stat:
  124. enabled: true
  125. # 慢SQL记录
  126. log-slow-sql: true
  127. slow-sql-millis: 1000
  128. merge-sql: true
  129. wall:
  130. config:
  131. multi-statement-allow: true
  132. # 文件上传
  133. servlet:
  134. multipart:
  135. # 单个文件大小
  136. max-file-size: 500MB
  137. # 设置总上传的文件大小
  138. max-request-size: 1000MB
  139. # 服务模块
  140. devtools:
  141. restart:
  142. # 热部署开关
  143. enabled: true
  144. # redis 配置
  145. redis:
  146. # 地址
  147. host: 127.0.0.1
  148. # 端口,默认为6379
  149. port: 6379
  150. # 数据库索引
  151. database: 1
  152. # 密码
  153. password: douya%2024
  154. # 连接超时时间
  155. timeout: 10s
  156. lettuce:
  157. pool:
  158. # 连接池中的最小空闲连接
  159. min-idle: 0
  160. # 连接池中的最大空闲连接
  161. max-idle: 8
  162. # 连接池的最大数据库连接数
  163. max-active: 8
  164. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  165. max-wait: -1ms
  166. # token配置
  167. token:
  168. # 令牌自定义标识
  169. header: Authorization
  170. # 令牌密钥
  171. secret: abcdefghijklmnopqrstuvwxyz
  172. # 令牌有效期(默认30分钟)
  173. expireTime: 720
  174. # MyBatis配置
  175. #mybatis:
  176. # # 搜索指定包别名
  177. # typeAliasesPackage: com.yiqi.**.domain
  178. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  179. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  180. # # 加载全局的配置文件
  181. # configLocation: classpath:mybatis/mybatis-config.xml
  182. mybatis-plus:
  183. type-aliases-package: com.yiqi.**.domain.**
  184. mapper-locations: classpath*:mapper/**/*.xml
  185. configuration:
  186. cache-enabled: true
  187. global-config:
  188. field-strategy: 0
  189. # PageHelper分页插件
  190. pagehelper:
  191. helperDialect: mysql
  192. supportMethodsArguments: false
  193. params: count=countSql
  194. # Swagger配置
  195. swagger:
  196. # 是否开启swagger
  197. enabled: true
  198. # 请求前缀
  199. pathMapping: /
  200. # 防止XSS攻击
  201. xss:
  202. # 过滤开关
  203. enabled: true
  204. # 排除链接(多个用逗号分隔)
  205. excludes: /system/notice
  206. # 匹配链接
  207. urlPatterns: /system/*,/monitor/*,/tool/*
  208. # 微信公众号
  209. wx:
  210. miniapp:
  211. appId: wx10a9a1ca54e0aa75
  212. secret: c71983482b218ab5adaf8bccac6c4942
  213. publicAppid: wxb74fad4c5a538738
  214. publicSecret: fc571b42c90b6d476f66935dd05d011d
  215. token: token
  216. encodingAESKey: encodingAESKey
  217. apiAesSn: XX
  218. apiAesKey: XX
  219. apiRsaSn: XX
  220. apiRsaKeyPath: XX
  221. apiRsaKey: XX