application-test.yml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206
  1. # 项目相关配置
  2. ruoyi:
  3. # 名称
  4. name: jjt
  5. # 版本
  6. version: 3.8.6
  7. # 版权年份
  8. copyrightYear: 2023
  9. # 实例演示开关
  10. demoEnabled: false
  11. # 获取ip地址开关
  12. addressEnabled: false
  13. # 验证码类型 math 数字计算 char 字符验证
  14. captchaType: math
  15. # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
  16. profile: /opt/doc/uploadPath
  17. #证书相关配置
  18. license:
  19. subject: doc_test
  20. licensePath: D:\SYSTEM\Desktop\temp\license.lic
  21. # 开发环境配置
  22. server:
  23. # 服务器的HTTP端口,默认为8080
  24. port: 8080
  25. servlet:
  26. # 应用的访问路径
  27. context-path: /
  28. tomcat:
  29. # tomcat的URI编码
  30. uri-encoding: UTF-8
  31. # 连接数满后的排队数,默认为100
  32. accept-count: 1000
  33. # tomcat超时时间
  34. max-connections: 30000
  35. threads:
  36. # tomcat最大线程数,默认为200
  37. max: 800
  38. # Tomcat启动初始化的线程数,默认值10
  39. min-spare: 100
  40. # Spring配置
  41. spring:
  42. #es配置
  43. elasticsearch:
  44. rest:
  45. uris: http://127.0.0.1:19200
  46. #mongodb配置
  47. data:
  48. mongodb:
  49. host: 127.0.0.1
  50. port: 27017
  51. database: document
  52. # redis 配置
  53. redis:
  54. # 地址
  55. host: 127.0.0.1
  56. # 端口,默认为6379
  57. port: 6379
  58. # 数据库索引
  59. database: 0
  60. # 密码
  61. password: redis123
  62. # 连接超时时间
  63. timeout: 10s
  64. lettuce:
  65. pool:
  66. # 连接池中的最小空闲连接
  67. min-idle: 0
  68. # 连接池中的最大空闲连接
  69. max-idle: 8
  70. # 连接池的最大数据库连接数
  71. max-active: 8
  72. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  73. max-wait: -1ms
  74. #数据源配置
  75. datasource:
  76. type: com.alibaba.druid.pool.DruidDataSource
  77. driverClassName: com.mysql.cj.jdbc.Driver
  78. druid:
  79. # 主库数据源
  80. master:
  81. url: jdbc:mysql://127.0.0.1:3306/doc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  82. username: root
  83. password: 123456
  84. # 从库数据源
  85. slave:
  86. # 从数据源开关/默认关闭
  87. enabled: false
  88. url:
  89. username:
  90. password:
  91. # 初始连接数
  92. initialSize: 5
  93. # 最小连接池数量
  94. minIdle: 10
  95. # 最大连接池数量
  96. maxActive: 20
  97. # 配置获取连接等待超时的时间
  98. maxWait: 60000
  99. # 配置连接超时时间
  100. connectTimeout: 30000
  101. # 配置网络超时时间
  102. socketTimeout: 60000
  103. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  104. timeBetweenEvictionRunsMillis: 60000
  105. # 配置一个连接在池中最小生存的时间,单位是毫秒
  106. minEvictableIdleTimeMillis: 300000
  107. # 配置一个连接在池中最大生存的时间,单位是毫秒
  108. maxEvictableIdleTimeMillis: 900000
  109. # 配置检测连接是否有效
  110. validationQuery: SELECT 1 FROM DUAL
  111. testWhileIdle: true
  112. testOnBorrow: false
  113. testOnReturn: false
  114. webStatFilter:
  115. enabled: true
  116. statViewServlet:
  117. enabled: true
  118. # 设置白名单,不填则允许所有访问
  119. allow:
  120. url-pattern: /druid/*
  121. # 控制台管理用户名和密码
  122. login-username: admin
  123. login-password: admin
  124. filter:
  125. stat:
  126. enabled: true
  127. # 慢SQL记录
  128. log-slow-sql: true
  129. slow-sql-millis: 1000
  130. merge-sql: true
  131. wall:
  132. config:
  133. multi-statement-allow: true
  134. # 资源信息
  135. messages:
  136. # 国际化资源文件路径
  137. basename: i18n/messages
  138. # 文件上传
  139. servlet:
  140. multipart:
  141. # 单个文件大小
  142. max-file-size: 10MB
  143. # 设置总上传的文件大小
  144. max-request-size: 100MB
  145. # 服务模块
  146. devtools:
  147. restart:
  148. # 热部署开关
  149. enabled: true
  150. # 日志配置
  151. logging:
  152. level:
  153. com.doc: error
  154. org.springframework: error
  155. # token配置
  156. token:
  157. # 令牌自定义标识
  158. header: Authorization
  159. # 令牌密钥
  160. secret: jjt@DOC.2023
  161. # 令牌有效期(默认30分钟)
  162. expireTime: 30
  163. # 是否允许账户多终端同时登录(true允许 false不允许)
  164. soloLogin: false
  165. # 请求有效时间(秒)
  166. requestTime: 5
  167. # MyBatis配置
  168. mybatis-plus:
  169. # 搜索指定包别名
  170. typeAliasesPackage: com.doc.**.domain
  171. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  172. mapperLocations: classpath*:mapper/**/*Mapper.xml
  173. # 加载全局的配置文件
  174. configLocation: classpath:mybatis/mybatis-config.xml
  175. # PageHelper分页插件
  176. pagehelper:
  177. helperDialect: mysql
  178. supportMethodsArguments: true
  179. params: count=countSql
  180. # Swagger配置
  181. swagger:
  182. # 是否开启swagger
  183. enabled: true
  184. # 请求前缀
  185. pathMapping: /dev-api
  186. # 防止XSS攻击
  187. xss:
  188. # 过滤开关
  189. enabled: true
  190. # 排除链接(多个用逗号分隔)
  191. excludes: /system/notice
  192. # 匹配链接
  193. urlPatterns: /system/*,/monitor/*,/tool/*
  194. # 用户配置
  195. user:
  196. password:
  197. # 密码最大错误次数
  198. maxRetryCount: 5
  199. # 密码锁定时间(默认10分钟)
  200. lockTime: 10