bem-charge-service.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. wechat:
  2. appid: ${wechat.park.miniprogram.appid} #小程序appid
  3. secret: ${wechat.park.miniprogram.secret} # 小程序secret
  4. inmessage: ${wechat.park.mp.template-msg.carin-message-id}
  5. outmessage: ${wechat.park.mp.template-msg.carout-message-id}
  6. #入车多次订阅消息模板
  7. inSubscriptionTemplate: u0naJ3L32p4NCC5uVx5Ta3ZoxcjGrThDw_m3gpiwiRo
  8. #出车多次订阅消息模板
  9. outSubscriptionTemplate: chZyVCI7wIMzETSS3f6ocvRDN39pisofAVtQ8lFvawM
  10. #岗亭端小程userOpenid redis key 前缀
  11. appletUserOpenidCacheKey: ydtp-backend-applet-user-openid
  12. spring:
  13. datasource:
  14. name: mydb
  15. url: ${public.datasource.parkdb.url}
  16. username: ${public.datasource.parkdb.charge-service.username}
  17. password: ${public.datasource.parkdb.charge-service.password}
  18. # 使用druid数据源
  19. type: com.alibaba.druid.pool.DruidDataSource
  20. driver-class-name: com.mysql.jdbc.Driver
  21. druid:
  22. filters: stat
  23. maxActive: 20
  24. initialSize: 1
  25. maxWait: 60000
  26. minIdle: 1
  27. timeBetweenEvictionRunsMillis: 60000
  28. minEvictableIdleTimeMillis: 300000
  29. validationQuery: select 'x'
  30. testWhileIdle: true
  31. testOnBorrow: false
  32. testOnReturn: false
  33. poolPreparedStatements: true
  34. maxOpenPreparedStatements: 20
  35. redis:
  36. open: true # 是否开启redis缓存 true开启 false关闭
  37. database: 0
  38. host: ${public.redis.default.host}
  39. port: ${public.redis.default.port}
  40. password: ${public.redis.default.password}
  41. timeout: 6000 # 连接超时时长(毫秒)
  42. pool:
  43. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  44. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-idle: 10 # 连接池中的最大空闲连接
  46. min-idle: 5 # 连接池中的最小空闲连接
  47. cloud:
  48. stream:
  49. kafka:
  50. binder:
  51. brokers: 172.21.1.177:9092
  52. auto-create-topics: false
  53. min-partition-count: 3
  54. bindings:
  55. duty-message:
  56. destination: duty-message
  57. producer:
  58. key-serializer: org.apache.kafka.common.serialization.ByteArraySerializer
  59. value-serializer: org.apache.kafka.common.serialization.ByteArraySerializer
  60. partitionKeyExpression: payload.park_id
  61. duty-message-json-output:
  62. destination: duty-message-json
  63. content-type: application/json
  64. duty-message-json-input:
  65. destination: duty-message-json
  66. content-type: application/json
  67. group: ${spring.application.name}
  68. http:
  69. multipart:
  70. maxFileSize: 100Mb
  71. maxRequestSize: 120Mb
  72. kafka:
  73. consumer:
  74. group-id: ${spring.application.name}
  75. mybatis:
  76. mapperLocations: classpath*:mapper/*Mapper.xml,classpath*:mapper/**/*Mapper.xml
  77. # 分页配置
  78. pagehelper:
  79. helper-dialect: mysql
  80. reasonable: true
  81. support-methods-arguments: true
  82. params: count=countSql
  83. ribbon:
  84. ReadTimeout: 60000
  85. ConnectTimeout: 60000
  86. ydt:
  87. domain: https://${public.domain.vos}
  88. logging:
  89. level:
  90. org.apache.kafka: DEBUG
  91. org.springframework: DEBUG
  92. cn.akeparking.zbcloud.account.dao: DEBUG
  93. com.netflix: DEBUG
  94. duty-message:
  95. car-owe-info:
  96. # 是否开启消息处理时查找车辆欠费信息,默认true,开启
  97. searching-enabled: true
  98. weixin:
  99. appid: ${wechat.open.appid}
  100. secret: ${wechat.open.secret}
  101. token: ${wechat.open.token}
  102. thumb_media_id: ${wechat.park.mp.media.scan-bind-thumb-media-id}
  103. redirect_uri: https://${public.domain.mgr}/sentry/
  104. follow_tips: 请先关注"一点停车场"公众号再进行交接班
  105. appletUserOpenidCacheKey: ydtp-backend-applet-user-openid