application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  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. # 用户配置
  42. user:
  43. password:
  44. # 密码最大错误次数
  45. maxRetryCount: 5
  46. # 密码锁定时间(默认10分钟)
  47. lockTime: 10
  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. # token配置
  91. token:
  92. # 令牌自定义标识
  93. header: Authorization
  94. # 令牌密钥
  95. secret: abcdefghijklmnopqrstuvwxyz
  96. # 令牌有效期(默认30分钟)
  97. expireTime: 120
  98. mybatis-plus:
  99. 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
  100. configuration:
  101. use-generated-keys: true
  102. # PageHelper分页插件
  103. pagehelper:
  104. helperDialect: mysql
  105. supportMethodsArguments: true
  106. params: count=countSql
  107. # 防止XSS攻击
  108. xss:
  109. # 过滤开关
  110. enabled: true
  111. # 排除链接(多个用逗号分隔)
  112. excludes: /system/notice
  113. # 匹配链接
  114. urlPatterns: /system/*,/monitor/*,/tool/*