application.yml 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.9.1
  7. # 版权年份
  8. copyrightYear: 2025
  9. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  10. # 相对路径示例(相对于项目根目录)
  11. profile: uploads/models
  12. # 获取ip地址开关
  13. addressEnabled: false
  14. # 验证码类型 math 数字计算 char 字符验证
  15. captchaType: math
  16. # 开发环境配置
  17. server:
  18. # 服务器的HTTP端口,默认为8080
  19. port: 8448
  20. servlet:
  21. # 应用的访问路径
  22. context-path: /
  23. tomcat:
  24. # tomcat的URI编码
  25. uri-encoding: UTF-8
  26. # 连接数满后的排队数,默认为100
  27. accept-count: 1000
  28. threads:
  29. # tomcat最大线程数,默认为200
  30. max: 800
  31. # Tomcat启动初始化的线程数,默认值10
  32. min-spare: 100
  33. # 日志配置
  34. logging:
  35. level:
  36. com.ruoyi: debug
  37. org.springframework: warn
  38. # 用户配置
  39. user:
  40. password:
  41. # 密码最大错误次数
  42. maxRetryCount: 5
  43. # 密码锁定时间(默认10分钟)
  44. lockTime: 10
  45. # Spring配置
  46. spring:
  47. # 资源信息
  48. messages:
  49. # 国际化资源文件路径
  50. basename: i18n/messages
  51. profiles:
  52. active: druid
  53. include: druid
  54. # 文件上传
  55. servlet:
  56. multipart:
  57. # 单个文件大小(三维模型文件通常较大,设置为1GB)
  58. max-file-size: 1GB
  59. # 设置总上传的文件大小
  60. max-request-size: 2GB
  61. # 服务模块
  62. devtools:
  63. restart:
  64. # 热部署开关
  65. enabled: true
  66. # redis 配置
  67. redis:
  68. # 地址
  69. host: 192.168.0.146
  70. # 端口,默认为6379
  71. port: 6379
  72. # 数据库索引
  73. database: 14
  74. # 密码
  75. password: ZjsthGw1125
  76. # 连接超时时间
  77. timeout: 20s
  78. lettuce:
  79. pool:
  80. # 连接池中的最小空闲连接
  81. min-idle: 0
  82. # 连接池中的最大空闲连接
  83. max-idle: 8
  84. # 连接池的最大数据库连接数
  85. max-active: 8
  86. # 连接池最大阻塞等待时间(使用负值表示没有限制)
  87. max-wait: -1ms
  88. # token配置
  89. token:
  90. # 令牌自定义标识
  91. header: Authorization
  92. # 令牌密钥
  93. secret: abcdefghijklmnopqrstuvwxyz
  94. # 令牌有效期(默认30分钟)
  95. expireTime: 30
  96. # MyBatis配置
  97. mybatis:
  98. # 搜索指定包别名
  99. typeAliasesPackage: com.ruoyi.**.domain
  100. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  101. mapperLocations: classpath*:mapper/**/*Mapper.xml
  102. # 加载全局的配置文件
  103. configLocation: classpath:mybatis/mybatis-config.xml
  104. # PageHelper分页插件
  105. pagehelper:
  106. helperDialect: oracle
  107. supportMethodsArguments: true
  108. params: count=countSql
  109. # Swagger配置
  110. swagger:
  111. # 是否开启swagger
  112. enabled: true
  113. # 请求前缀
  114. pathMapping: /dev-api
  115. # 防盗链配置
  116. referer:
  117. # 防盗链开关
  118. enabled: false
  119. # 允许的域名列表
  120. allowed-domains: localhost,127.0.0.1,ruoyi.vip,www.ruoyi.vip
  121. # 防止XSS攻击
  122. xss:
  123. # 过滤开关
  124. enabled: true
  125. # 排除链接(多个用逗号分隔)
  126. excludes: /system/notice
  127. # 匹配链接
  128. urlPatterns: /system/*,/monitor/*,/tool/*