application.yml 3.1 KB

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