application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: RuoYi
  5. # 版本
  6. version: 3.8.8
  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: 8885
  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. # 日志配置
  33. logging:
  34. level:
  35. com.gqy: debug
  36. org.springframework: warn
  37. # 用户配置
  38. user:
  39. password:
  40. # 密码最大错误次数
  41. maxRetryCount: 5
  42. # 密码锁定时间(默认10分钟)
  43. lockTime: 10
  44. # Spring配置
  45. spring:
  46. # 资源信息
  47. messages:
  48. # 国际化资源文件路径
  49. basename: i18n/messages
  50. profiles:
  51. active: druid
  52. # 文件上传
  53. servlet:
  54. multipart:
  55. # 单个文件大小
  56. max-file-size: 10MB
  57. # 设置总上传的文件大小
  58. max-request-size: 20MB
  59. # 服务模块
  60. devtools:
  61. restart:
  62. # 热部署开关
  63. enabled: false
  64. # redis 配置
  65. redis:
  66. # 地址
  67. #host: 120.46.190.49
  68. host: 127.0.0.1
  69. # 端口,默认为6379
  70. port: 6379
  71. # 数据库索引
  72. database: 13
  73. # 密码
  74. # password: Iayq@742295
  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. mvc:
  88. static-path-pattern: /**
  89. web:
  90. resources:
  91. static-locations:
  92. - file:${user.dir}/static/
  93. - classpath:/static/
  94. # token配置
  95. token:
  96. # 令牌自定义标识
  97. header: Authorization
  98. # 令牌密钥
  99. secret: abcdefghijklmnopqrstuvwxyz
  100. # 令牌有效期(默认30分钟)
  101. expireTime: 30
  102. # MyBatis配置
  103. mybatis:
  104. # 搜索指定包别名
  105. typeAliasesPackage: com.gqy.**.domain
  106. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  107. mapperLocations: classpath*:mapper/**/*Mapper.xml
  108. # 加载全局的配置文件
  109. configLocation: classpath:mybatis/mybatis-config.xml
  110. # PageHelper分页插件
  111. pagehelper:
  112. helperDialect: mysql
  113. supportMethodsArguments: true
  114. params: count=countSql
  115. # Swagger配置
  116. swagger:
  117. # 是否开启swagger
  118. enabled: true
  119. # 请求前缀
  120. pathMapping: /dev-api
  121. # 防止XSS攻击
  122. xss:
  123. # 过滤开关
  124. enabled: true
  125. # 排除链接(多个用逗号分隔)
  126. excludes: /system/notice
  127. # 匹配链接
  128. urlPatterns: /system/*,/monitor/*,/tool/*