application.yml 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: 要易云BI系统
  5. # 版本
  6. version: 1.0.0
  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. server:
  17. # 服务器的HTTP端口,默认为8080
  18. port: 8080
  19. servlet:
  20. # 应用的访问路径
  21. context-path: /
  22. tomcat:
  23. # tomcat的URI编码
  24. uri-encoding: UTF-8
  25. # 连接数满后的排队数,默认为100
  26. accept-count: 1000
  27. threads:
  28. # tomcat最大线程数,默认为200
  29. max: 800
  30. # Tomcat启动初始化的线程数,默认值10
  31. min-spare: 100
  32. # 解决springdoc部署在反向代理后面时接口地址错误的问题
  33. # 详情请看官方文档:https://springdoc.org/#how-can-i-deploy-springdoc-openapi-starter-webmvc-ui-behind-a-reverse-proxy
  34. forward-headers-strategy: framework
  35. # 日志配置
  36. logging:
  37. level:
  38. com.ruoyi: debug
  39. org.springframework: warn
  40. com.retdata.yaoyibi: debug
  41. com.retdata.canal: info
  42. # 用户配置
  43. user:
  44. password:
  45. # 密码最大错误次数
  46. maxRetryCount: 5
  47. # 密码锁定时间(默认10分钟)
  48. lockTime: 10
  49. # Spring配置
  50. spring:
  51. # 资源信息
  52. messages:
  53. # 国际化资源文件路径
  54. basename: i18n/messages
  55. profiles:
  56. active: druid
  57. # 文件上传
  58. servlet:
  59. multipart:
  60. # 单个文件大小
  61. max-file-size: 10MB
  62. # 设置总上传的文件大小
  63. max-request-size: 20MB
  64. # 服务模块
  65. devtools:
  66. restart:
  67. # 热部署开关
  68. enabled: true
  69. # redis 配置
  70. redis:
  71. # 地址
  72. host: localhost
  73. # 端口,默认为6379
  74. port: 6379
  75. # 数据库索引
  76. database: 0
  77. # 密码
  78. password:
  79. # 连接超时时间
  80. timeout: 10s
  81. lettuce:
  82. pool:
  83. # 连接池中的最小空闲连接
  84. min-idle: 0
  85. # 连接池中的最大空闲连接
  86. max-idle: 8
  87. # 连接池的最大数据库连接数
  88. max-active: 8
  89. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  90. max-wait: -1ms
  91. # token配置
  92. token:
  93. # 令牌自定义标识
  94. header: Authorization
  95. # 令牌密钥
  96. secret: abcdefghijklmnopqrstuvwxyz
  97. # 令牌有效期(默认30分钟)
  98. expireTime: 120
  99. mybatis-plus:
  100. type-aliases-package: com.ruoyi.system.domain,com.ruoyi.quartz.domain,com.ruoyi.common.core.domain.model,com.ruoyi.system.domain.vo,com.ruoyi.common.core.domain.entity,com.ruoyi.framework.web.domain,com.ruoyi.common.core.domain,com.ruoyi.framework.web.domain.server,com.ruoyi.generator.domain
  101. configuration:
  102. use-generated-keys: true
  103. global-config:
  104. db-config:
  105. # 同步数据,不忽略空值
  106. insert-strategy: ALWAYS
  107. update-strategy: ALWAYS
  108. # PageHelper分页插件
  109. pagehelper:
  110. helperDialect: mysql
  111. supportMethodsArguments: true
  112. params: count=countSql
  113. # 防止XSS攻击
  114. xss:
  115. # 过滤开关
  116. enabled: true
  117. # 排除链接(多个用逗号分隔)
  118. excludes: /system/notice
  119. # 匹配链接
  120. urlPatterns: /system/*,/monitor/*,/tool/*
  121. canal:
  122. sourceConfig:
  123. CSO:
  124. enabled: true
  125. serverHost: localhost
  126. serverPort: 11111
  127. instance: example
  128. subscribe: "cso_prod\\..*"
  129. interval: 60000
  130. LUOXIN_CSO:
  131. enabled: false
  132. serverHost: localhost
  133. serverPort: 11111
  134. instance: luoxincso
  135. subscribe: "cso_prod\\..*"
  136. interval: 60000