application.yml 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. # 项目相关配置
  2. base:
  3. # 名称
  4. name: base
  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: C:/base/uploadPath
  13. # 获取ip地址开关
  14. addressEnabled: false
  15. # 验证码类型 math 数组计算 char 字符验证
  16. captchaType: math
  17. # 开发环境配置
  18. server:
  19. # 服务器的HTTP端口,默认为8080
  20. port: 8082
  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. # 资源信息
  49. messages:
  50. # 国际化资源文件路径
  51. basename: i18n/messages
  52. profiles:
  53. active: druid
  54. # 文件上传
  55. servlet:
  56. multipart:
  57. # 单个文件大小
  58. max-file-size: 10MB
  59. # 设置总上传的文件大小
  60. max-request-size: 20MB
  61. # 服务模块
  62. devtools:
  63. restart:
  64. # 热部署开关
  65. enabled: true
  66. # redis 配置
  67. redis:
  68. # 地址
  69. host: 124.70.58.209
  70. # 端口,默认为6379
  71. port: 7001
  72. # 数据库索引
  73. database: 0
  74. # 密码
  75. password: 106@qwe123
  76. # 连接超时时间
  77. timeout: 100s
  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. # web:token配置
  89. token:
  90. # 令牌自定义标识
  91. header: Authorization
  92. # 令牌密钥
  93. secret: abcdefghijklmnopqrstuvwxyz
  94. # 令牌有效期(默认30分钟)
  95. expireTime: 30
  96. # app:token配置
  97. apptoken:
  98. # 令牌自定义标识
  99. header: Authorization
  100. # 令牌密钥
  101. secret: qwertyuiopasdfghjklzxcvbnm
  102. # 令牌有效期(默认15天)
  103. expireTime: 21600
  104. # MyBatis配置
  105. mybatis:
  106. # 搜索指定包别名
  107. typeAliasesPackage: com.ozs.**.domain
  108. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  109. mapperLocations: classpath*:mapper/**/*Mapper.xml
  110. # 加载全局的配置文件
  111. configLocation: classpath:mybatis/mybatis-config.xml
  112. # MyBatis-plus配置
  113. mybatis-plus:
  114. config-location: classpath:mybatis/mybatis-config.xml
  115. typeAliasesPackage: com.ozs.**.domain
  116. mapperLocations: classpath*:mapper/**/*Mapper.xml
  117. # PageHelper分页插件
  118. pagehelper:
  119. helperDialect: mysql
  120. supportMethodsArguments: true
  121. params: count=countSql
  122. # Swagger配置
  123. swagger:
  124. # 是否开启swagger
  125. enabled: true
  126. # 请求前缀
  127. pathMapping: /dev-api
  128. # 防止XSS攻击
  129. xss:
  130. # 过滤开关
  131. enabled: true
  132. # 排除链接(多个用逗号分隔)
  133. excludes: /system/notice
  134. # 匹配链接
  135. urlPatterns: /system/*,/monitor/*,/tool/*
  136. minio:
  137. endpoint: http://124.71.171.71:18801 #Minio服务所在地址
  138. bucketName: picbucket #存储桶名称
  139. accessKey: admin #访问的key
  140. secretKey: admin123 #访问的秘钥