application-test.yml 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. imgAddress: /home/img-repository/%s.jpg
  2. clientKey: 爱与和平
  3. # 项目相关配置
  4. zksy:
  5. # 名称
  6. name: zksy
  7. # 版本
  8. version: 1.0.0
  9. # 版权年份
  10. copyrightYear: 2023
  11. # 实例演示开关
  12. demoEnabled: true
  13. # 文件路径 示例( Windows配置D:/zksy/uploadPath,Linux配置 /home/zksy/uploadPath)
  14. profile: /home/zksy/uploadPath/creditRating/
  15. # 获取ip地址开关
  16. addressEnabled: false
  17. # 验证码类型 math 数组计算 char 字符验证
  18. captchaType: math
  19. # 日志配置
  20. logging:
  21. level:
  22. com.zksy: debug
  23. org.springframework: warn
  24. # 数据源配置
  25. spring:
  26. datasource:
  27. type: com.alibaba.druid.pool.DruidDataSource
  28. driverClassName: com.mysql.cj.jdbc.Driver
  29. druid:
  30. # 主库数据源
  31. master:
  32. url: jdbc:mysql://192.168.110.30:3307/credit_rating_management?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8
  33. username: root
  34. password: 123
  35. # 从库数据源
  36. slave:
  37. # 从数据源开关/默认关闭
  38. enabled: false
  39. url:
  40. username:
  41. password:
  42. # 初始连接数
  43. initialSize: 5
  44. # 最小连接池数量
  45. minIdle: 100
  46. # 最大连接池数量
  47. maxActive: 400
  48. # 配置获取连接等待超时的时间
  49. maxWait: 60000
  50. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  51. timeBetweenEvictionRunsMillis: 60000
  52. # 配置一个连接在池中最小生存的时间,单位是毫秒
  53. minEvictableIdleTimeMillis: 300000
  54. # 配置一个连接在池中最大生存的时间,单位是毫秒
  55. maxEvictableIdleTimeMillis: 900000
  56. # 配置检测连接是否有效
  57. validationQuery: SELECT 1 FROM DUAL
  58. testWhileIdle: true
  59. testOnBorrow: false
  60. testOnReturn: false
  61. webStatFilter:
  62. enabled: false
  63. statViewServlet:
  64. enabled: false
  65. # 设置白名单,不填则允许所有访问
  66. allow:
  67. url-pattern: /druid/*
  68. # 控制台管理用户名和密码
  69. login-username: wsnbb
  70. login-password: cnmd123@#$%(cnnn)#
  71. filter:
  72. stat:
  73. enabled: true
  74. # 慢SQL记录
  75. log-slow-sql: true
  76. slow-sql-millis: 1000
  77. merge-sql: true
  78. wall:
  79. config:
  80. multi-statement-allow: true
  81. # redis 配置
  82. redis:
  83. # 地址
  84. host: 192.168.110.30
  85. # 端口,默认为6379
  86. port: 6379
  87. # 数据库索引
  88. database: 0
  89. # 密码
  90. #password:
  91. # 连接超时时间
  92. timeout: 10s
  93. lettuce:
  94. pool:
  95. # 连接池中的最小空闲连接
  96. min-idle: 10
  97. # 连接池中的最大空闲连接
  98. max-idle: 200
  99. # 连接池的最大数据库连接数
  100. max-active: 200
  101. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  102. max-wait: 1000ms
  103. # redisson:
  104. # # 单机
  105. # address: 10.101.102.10:6379
  106. # database: 10
  107. # #password: dy123@
  108. ## 文件上传配置
  109. local:
  110. fileserver:
  111. path: file:/home/zksy/uploadPath/creditRating/
  112. upload:
  113. path: /home/zksy/uploadPath/creditRating/
  114. baseurl:
  115. mapping:
  116. path: /profile/zksy/creditRating
  117. filetypes: .jpg,.gif,.png,.ico,.bmp,.jpeg,.mp4,.xls,.xlsx,.tif,.pcx,.tga,.exif,.fpx,.svg,.psd,.cdr,.pcd,.dib,.jfif,.jpe,.dxf,.ufo,.eps,.ai,.raw,.et,.WMF,.webp,.avi,.rmvb,.prn,.wps,.vsd,.dps,.avif,.apng,.doc,.docx,.txt,.pdf,.ppt,.exe,.pptx,.rft,.rar,.zip,.dat,.key,.msg,.cad,.btw,
  118. system:
  119. ghQuestionnaire: true
  120. diffpub: true
  121. #最大连接数
  122. server:
  123. tomcat:
  124. max-connections: 2000
  125. #最大线程数
  126. max-threads: 1000
  127. #最大等待数
  128. accept-count: 800
  129. management:
  130. health:
  131. redis:
  132. enabled: false