bem-center-monitor-service.yml 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. spring:
  2. datasource:
  3. druid:
  4. name: mydb
  5. url: ${public.datasource.parkdb.url}
  6. username: ${public.datasource.parkdb.cpmp-service.username}
  7. password: ${public.datasource.parkdb.cpmp-service.password}
  8. type: com.alibaba.druid.pool.DruidDataSource
  9. driver-class-name: com.mysql.jdbc.Driver
  10. filters: stat
  11. maxActive: 200
  12. initialSize: 20
  13. maxWait: 60000
  14. minIdle: 20
  15. timeBetweenEvictionRunsMillis: 60000
  16. minEvictableIdleTimeMillis: 300000
  17. validationQuery: select 'x'
  18. testWhileIdle: true
  19. testOnBorrow: false
  20. testOnReturn: false
  21. poolPreparedStatements: true
  22. maxOpenPreparedStatements: 100
  23. redis:
  24. open: true # 是否开启redis缓存 true开启 false关闭
  25. database: 0
  26. host: ${public.redis.default.host}
  27. port: ${public.redis.default.port}
  28. password: ${public.redis.default.password}
  29. timeout: 6000 # 连接超时时长(毫秒)
  30. pool:
  31. max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
  32. max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
  33. max-idle: 10 # 连接池中的最大空闲连接
  34. min-idle: 5 # 连接池中的最小空闲连接
  35. cloud:
  36. stream:
  37. kafka:
  38. binder:
  39. brokers: 172.21.1.177:9092
  40. auto-create-topics: True
  41. min-partition-count: 3
  42. bindings:
  43. duty-message-input:
  44. destination: duty-message
  45. duty-message-json-output:
  46. destination: duty-message-json
  47. content-type: application/json
  48. producer:
  49. partitionKeyExpression: payload.park_id
  50. duty-message-json-input:
  51. destination: duty-message-json
  52. content-type: application/json
  53. group: ${spring.application.name}
  54. kafka:
  55. consumer:
  56. group-id: ${spring.application.name}
  57. mybatis:
  58. mapperLocations: classpath*:mapper/*Mapper.xml,classpath*:mapper/**/*Mapper.xml
  59. # 分页配置
  60. pagehelper:
  61. helper-dialect: mysql
  62. reasonable: true
  63. support-methods-arguments: true
  64. params: count=countSql
  65. ribbon:
  66. ReadTimeout: 60000
  67. ConnectTimeout: 60000
  68. logging:
  69. level:
  70. org.springframework: DEBUG
  71. cn.akeparking.zbcloud: DEBUG
  72. org.spring.springboot.dao: DEBUG
  73. org.apache.kafka: DEBUG
  74. # freeswitch
  75. freeswitch:
  76. user-api-url: ${freeswitch.lua-api-url}?/usr/local/freeswitch/scripts/user.lua
  77. #OSS地址
  78. oss:
  79. domain: https://ake-bem-parking-test.oss-cn-shenzhen.aliyuncs.com/
  80. #PRMS初始化环境枪URL
  81. prms-init-enVironment-gun-url: http://testprms.yidianting.xin/api/public/ytj_camera_url
  82. ezviz:
  83. appKey: c9603efcdf654e478dd713e9fe06aa4e
  84. appSecret: ec92186e0824f51fc3359aeabe6d7d79