application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. #---------- Spring Boot 项目 ----------#
  2. # 项目配置
  3. app:
  4. name: cuspay
  5. description: ${app.name} is a Spring Boot application
  6. # 服务配置
  7. server:
  8. address: 120.76.26.84
  9. port: 9999
  10. servlet:
  11. context-path: /
  12. ds:
  13. worker-id: 1
  14. datacenter-id: 1
  15. # 使用环境
  16. spring:
  17. profiles:
  18. active: dev
  19. # 使用CGLIB实现AOP
  20. aop:
  21. proxy-target-class: true
  22. # 数据源
  23. datasource:
  24. primary:
  25. # 数据源zaxxer HikariCP
  26. type: com.zaxxer.hikari.HikariDataSource
  27. driver-class-name: org.mariadb.jdbc.Driver
  28. url: jdbc:mysql://rm-wz9rps8173a1nx63g819.mysql.rds.aliyuncs.com:3306/cuspay?useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true
  29. username: qh_cus
  30. password: Ci*&k89Cf
  31. # hikari连接池配置
  32. hikari:
  33. connection-timeout: 10000
  34. validation-timeout: 5000
  35. idle-timeout: 600000
  36. max-lifetime: 1200000
  37. maximum-pool-size: 3
  38. minimum-idle: 3
  39. redis:
  40. # JedisCluster
  41. jedis-cluster:
  42. # Redis Cluster 主机列表
  43. redis-cluster-host-list:
  44. - host: 120.76.84.45
  45. port: 7000
  46. - host: 120.76.84.45
  47. port: 7001
  48. - host: 120.76.84.45
  49. port: 7002
  50. - host: 120.76.26.84
  51. port: 7003
  52. - host: 120.76.26.84
  53. port: 7004
  54. - host: 120.76.26.84
  55. port: 7005
  56. password: Abc-123#*.-
  57. # 连接超时时间(秒), 默认 2*1000
  58. connection-timeout: 5000
  59. max-attempts: 5
  60. pool-config:
  61. max-total: 8
  62. max-idle: 8
  63. min-idle: 0
  64. # mybatis config 多数据源
  65. mybatis:
  66. primary:
  67. # 加载MyBatis配置文件
  68. config-location: classpath:mybatis/mybatis-config.xml
  69. mapper-locations: classpath:mybatis/mapper/**/*.xml
  70. type-aliases-package: com.emato.cuspay
  71. wx:
  72. payment:
  73. declare:
  74. url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclareorder
  75. query:
  76. url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclarequery
  77. db:
  78. merch:
  79. notice:
  80. limit: 20
  81. count: 2
  82. wx:
  83. #定时器报关一次区的数据
  84. declare:
  85. limit: 20
  86. count: 2