application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.9
  7. # 版权年份
  8. copyrightYear: 2025
  9. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  10. #profile: D:/ruoyi/uploadPath
  11. profile: /home/tuzai-file/uploadPath
  12. # 获取ip地址开关
  13. addressEnabled: false
  14. # 验证码类型 math 数字计算 char 字符验证
  15. captchaType: math
  16. # 开发环境配置
  17. server:
  18. # 服务器的HTTP端口,默认为8080
  19. port: 8087
  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. # 文件上传
  54. servlet:
  55. multipart:
  56. # 单个文件大小
  57. max-file-size: 10MB
  58. # 设置总上传的文件大小
  59. max-request-size: 20MB
  60. # 服务模块
  61. devtools:
  62. restart:
  63. # 热部署开关
  64. enabled: true
  65. # redis 配置
  66. redis:
  67. # 地址
  68. host: localhost
  69. # 端口,默认为6379
  70. port: 6379
  71. # 数据库索引
  72. database: 10
  73. # 密码
  74. # password: hm123456
  75. # 连接超时时间
  76. timeout: 10s
  77. lettuce:
  78. pool:
  79. # 连接池中的最小空闲连接
  80. min-idle: 0
  81. # 连接池中的最大空闲连接
  82. max-idle: 8
  83. # 连接池的最大数据库连接数
  84. max-active: 8
  85. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  86. max-wait: -1ms
  87. # token配置
  88. token:
  89. # 令牌自定义标识
  90. header: Authorization
  91. # 令牌密钥
  92. secret: abcdefghijklmnopqrstuvwxyz
  93. # 令牌有效期(默认30分钟)
  94. expireTime: 30
  95. # MyBatis配置
  96. mybatis:
  97. # 搜索指定包别名
  98. typeAliasesPackage: com.ruoyi.**.domain
  99. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  100. mapperLocations: classpath*:mapper/**/*Mapper.xml
  101. # 加载全局的配置文件
  102. configLocation: classpath:mybatis/mybatis-config.xml
  103. # PageHelper分页插件
  104. pagehelper:
  105. helperDialect: mysql
  106. supportMethodsArguments: true
  107. params: count=countSql
  108. # Swagger配置
  109. swagger:
  110. # 是否开启swagger
  111. enabled: true
  112. # 请求前缀
  113. pathMapping: /dev-api
  114. # 防止XSS攻击
  115. xss:
  116. # 过滤开关
  117. enabled: true
  118. # 排除链接(多个用逗号分隔)
  119. excludes: /system/notice
  120. # 匹配链接
  121. urlPatterns: /system/*,/monitor/*,/tool/*
  122. #WVP配置
  123. #wvp:
  124. # #地址
  125. # addr: http://101.66.246.132:18080
  126. # #用户名
  127. # username: admin
  128. # #密码
  129. # password: admin
  130. mybatis-plus:
  131. mapper-locations: classpath*:mapper/*.xml
  132. #img:
  133. # url: https://img.ifarmcloud.com/images/
  134. # basePath: /home/huimv/img/
  135. # ip: 119.3.44.183
  136. # user: huimv
  137. # password: "!hm123@1"
  138. # port: 22