1
0

application.yml 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. #---------- Spring Boot 项目 ----------#
  2. # 项目配置
  3. app:
  4. name: cuspay
  5. description: ${app.name} is a Spring Boot application
  6. # 服务配置
  7. server:
  8. address: 127.0.0.1
  9. port: 8080
  10. servlet:
  11. context-path: /
  12. ds:
  13. worker-id: 1
  14. datacenter-id: 1
  15. # 使用环境
  16. spring:
  17. profiles:
  18. active:
  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://120.76.84.45:3306/cuspay?useSSL=false&useUnicode=true&characterEncoding=UTF-8&allowMultiQueries=true&autoReconnect=true&failOverReadOnly=false&zeroDateTimeBehavior=convertToNull
  29. username: ceshi
  30. password: abc-123
  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: 127.0.0.1
  45. port: 7000
  46. - host: 127.0.0.1
  47. port: 7001
  48. - host: 127.0.0.1
  49. port: 7002
  50. - host: 127.0.0.1
  51. port: 7003
  52. - host: 127.0.0.1
  53. port: 7004
  54. - host: 127.0.0.1
  55. port: 7005
  56. # - host: qhdswl.f3322.net
  57. # port: 7000
  58. # - host: qhdswl.f3322.net
  59. # port: 7001
  60. # - host: qhdswl.f3322.net
  61. # port: 7002
  62. # - host: qhdswl.f3322.net
  63. # port: 7003
  64. # - host: qhdswl.f3322.net
  65. # port: 7004
  66. # - host: qhdswl.f3322.net
  67. # port: 7005
  68. # 连接超时时间(秒), 默认 2*1000
  69. connection-timeout: 5000
  70. max-attempts: 5
  71. pool-config:
  72. max-total: 8
  73. max-idle: 8
  74. min-idle: 0
  75. # mybatis config 多数据源
  76. mybatis:
  77. primary:
  78. # 加载MyBatis配置文件
  79. config-location: classpath:mybatis/mybatis-config.xml
  80. mapper-locations: classpath:mybatis/mapper/**/*.xml
  81. type-aliases-package: com.emato.cuspay
  82. wx:
  83. payment:
  84. declare:
  85. url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclareorder
  86. query:
  87. url: https://api.mch.weixin.qq.com/cgi-bin/mch/customs/customdeclarequery
  88. db:
  89. merch:
  90. notice:
  91. limit: 20
  92. count: 2
  93. wx:
  94. #定时器报关一次区的数据
  95. declare:
  96. limit: 20