application-dev.yml 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. spring:
  2. #数据源连接--start
  3. datasource:
  4. #driverClassName: com.mysql.jdbc.Driver
  5. url: jdbc:mysql://192.168.2.100:3306/caimei?characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  6. username: developer
  7. password: 05bZ/OxTB:X+yd%1
  8. type: com.zaxxer.hikari.HikariDataSource
  9. hikari:
  10. minimum-idle: 5
  11. maximum-pool-size: 15
  12. auto-commit: true
  13. idle-timeout: 30000
  14. pool-name: DatebookHikariCP
  15. max-lifetime: 1800000
  16. connection-timeout: 30000
  17. connection-test-query: SELECT 1
  18. #数据源连接--end
  19. redis:
  20. host: 119.29.0.46
  21. port: 6380
  22. password: 6#xsI%b4o@5c3RoE
  23. #Redis数据库索引(默认为0)
  24. database: 0
  25. #连接池最大连接数(使用负值表示没有限制)
  26. jedis:
  27. pool:
  28. max-active: 50
  29. #连接池最大阻塞等待时间(使用负值表示没有限制)
  30. max-wait: -1
  31. #连接池中的最大空闲连接
  32. max-idle: 20
  33. #连接池中的最小空闲连接
  34. min-idle: 2
  35. #连接超时时间(毫秒)
  36. timeout: 5000
  37. #上传文件大小
  38. servlet:
  39. multipart:
  40. max-file-size: 10MB
  41. max-request-size: 100MB
  42. #日志配置
  43. logging:
  44. level:
  45. root: info
  46. com.caimei.mapper: debug
  47. com.caimei.module.product.dao: debug
  48. # swagger文档显示配置
  49. swagger:
  50. enabled: true
  51. #自定义配置
  52. wx:
  53. AppId: wxca7172d7a20bdf7a
  54. AppSecret: d7f853a64b73d01ef93f3829852a790e