bem-center-monitor-service.yml 2.9 KB

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