bem-charge-service.yml 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  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: ${public.kafka.default.brokers}
  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. #producer:
  65. # partitionKeyExpression: payload.park_id
  66. duty-message-json-input:
  67. destination: duty-message-json
  68. content-type: application/json
  69. group: ${spring.application.name}
  70. http:
  71. multipart:
  72. maxFileSize: 100Mb
  73. maxRequestSize: 120Mb
  74. kafka:
  75. consumer:
  76. group-id: ${spring.application.name}
  77. mybatis:
  78. mapperLocations: classpath*:mapper/*Mapper.xml,classpath*:mapper/**/*Mapper.xml
  79. # 分页配置
  80. pagehelper:
  81. helper-dialect: mysql
  82. reasonable: true
  83. support-methods-arguments: true
  84. params: count=countSql
  85. ribbon:
  86. ReadTimeout: 60000
  87. ConnectTimeout: 60000
  88. ydt:
  89. domain: https://${public.domain.vos}
  90. logging:
  91. level:
  92. org.apache.kafka: ERROR
  93. org.springframework: WARN
  94. cn.akeparking.zbcloud.account.dao: DEBUG
  95. com.netflix: ERROR
  96. duty-message:
  97. car-owe-info:
  98. # 是否开启消息处理时查找车辆欠费信息,默认true,开启
  99. searching-enabled: true
  100. weixin:
  101. appid: ${wechat.open.appid}
  102. secret: ${wechat.open.secret}
  103. token: ${wechat.open.token}
  104. thumb_media_id: ${wechat.park.mp.media.scan-bind-thumb-media-id}
  105. redirect_uri: https://${public.domain.mgr}/sentry/
  106. follow_tips: 请先关注"一点停车场"公众号再进行交接班
  107. appletUserOpenidCacheKey: ydtp-backend-applet-user-openid