application.yml 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  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: /home/ruoyi
  13. profile: D:/ruoyi/
  14. # 获取ip地址开关
  15. addressEnabled: false
  16. # 验证码类型 math 数组计算 char 字符验证
  17. captchaType: math
  18. # 开发环境配置
  19. server:
  20. # 服务器的HTTP端口,默认为8080
  21. port: 8082
  22. servlet:
  23. # 应用的访问路径
  24. context-path: /
  25. tomcat:
  26. # tomcat的URI编码
  27. uri-encoding: UTF-8
  28. # 连接数满后的排队数,默认为100
  29. accept-count: 1000
  30. threads:
  31. # tomcat最大线程数,默认为200
  32. max: 800
  33. # Tomcat启动初始化的线程数,默认值10
  34. min-spare: 100
  35. # 日志配置
  36. logging:
  37. level:
  38. com.ruoyi: warn
  39. org.springframework: warn
  40. # 用户配置
  41. user:
  42. password:
  43. # 密码最大错误次数
  44. maxRetryCount: 5
  45. # 密码锁定时间(默认10分钟)
  46. lockTime: 10
  47. # Spring配置
  48. spring:
  49. # thymeleaf:
  50. # prefix: classpath:/templates/
  51. # mode: HTML5
  52. # cache: false
  53. mvc:
  54. pathmatch:
  55. matching-strategy: ant-path-matcher
  56. # static-path-pattern: /**
  57. web:
  58. resources:
  59. static-locations: classpath:/static-bd/
  60. # resource:
  61. # static-locations: classpath:/static-bd/
  62. # 资源信息
  63. messages:
  64. # 国际化资源文件路径
  65. basename: i18n/messages
  66. profiles:
  67. active: druid3
  68. # 文件上传
  69. servlet:
  70. multipart:
  71. # 单个文件大小
  72. max-file-size: 10MB
  73. # 设置总上传的文件大小
  74. max-request-size: 20MB
  75. # 服务模块
  76. devtools:
  77. restart:
  78. # 热部署开关
  79. enabled: false
  80. # redis 配置
  81. redis:
  82. # 地址
  83. host: 172.16.12.103
  84. # host: 127.0.0.1
  85. # 端口,默认为6379
  86. port: 6379
  87. # 数据库索引
  88. database: 5
  89. # 密码
  90. password: GYee@#56
  91. # password:
  92. # 连接超时时间
  93. timeout: 10s
  94. lettuce:
  95. pool:
  96. # 连接池中的最小空闲连接
  97. min-idle: 0
  98. # 连接池中的最大空闲连接
  99. max-idle: 8
  100. # 连接池的最大数据库连接数
  101. max-active: 8
  102. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  103. max-wait: -1ms
  104. cache:
  105. type: redis
  106. jackson:
  107. date-format: yyyy-MM-dd HH:mm:ss.SSS
  108. # token配置
  109. token:
  110. # 令牌自定义标识
  111. header: Authorization
  112. # 令牌密钥
  113. secret: abcdefghijklmnopqrstuvwxyz
  114. # 令牌有效期(默认30分钟)
  115. expireTime: 36000
  116. # MyBatis配置
  117. #mybatis:
  118. # # 搜索指定包别名
  119. # typeAliasesPackage: com.ruoyi.**.domain
  120. # # 配置mapper的扫描,找到所有的mapper.xml映射文件
  121. # mapperLocations: classpath*:mapper/**/*Mapper.xml
  122. # # 加载全局的配置文件
  123. # configLocation: classpath:mybatis/mybatis-config.xml
  124. mybatis-plus:
  125. typeAliasesPackage: com.ruoyi.**.domain
  126. mapper-locations: classpath*:mapper/**/*Mapper.xml
  127. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  128. # PageHelper分页插件
  129. pagehelper:
  130. helperDialect: mysql
  131. supportMethodsArguments: true
  132. params: count=countSql
  133. # Swagger配置
  134. swagger:
  135. # 是否开启swagger
  136. enabled: true
  137. # 请求前缀
  138. pathMapping: /dev-api
  139. # 防止XSS攻击
  140. xss:
  141. # 过滤开关
  142. enabled: true
  143. # 排除链接(多个用逗号分隔)
  144. excludes: /system/notice
  145. # 匹配链接
  146. urlPatterns: /system/*,/monitor/*,/tool/*
  147. #url: ws://43.156.3.30:8080/gs-guide-websocket
  148. feign:
  149. client:
  150. config:
  151. default:
  152. connect-timeout: 15000
  153. read-timeout: 7200000
  154. power_curve_month: "glqxnh:8:"