1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192 |
- spring:
- datasource:
- name: mydb
- url: ${public.datasource.parkdb.url}
- username: ${public.datasource.parkdb.center-monitor-service.username}
- password: ${public.datasource.parkdb.center-monitor-service.password}
- # 使用druid数据源
- type: com.alibaba.druid.pool.DruidDataSource
- driver-class-name: com.mysql.jdbc.Driver
- druid:
- filters: stat
- maxActive: 20
- initialSize: 1
- maxWait: 60000
- minIdle: 1
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- validationQuery: select 'x'
- testWhileIdle: true
- testOnBorrow: false
- testOnReturn: false
- poolPreparedStatements: true
- maxOpenPreparedStatements: 20
- redis:
- open: true # 是否开启redis缓存 true开启 false关闭
- database: 0
- host: ${public.redis.default.host}
- port: ${public.redis.default.port}
- password: ${public.redis.default.password}
- timeout: 6000 # 连接超时时长(毫秒)
- pool:
- max-active: 1000 # 连接池最大连接数(使用负值表示没有限制)
- max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 10 # 连接池中的最大空闲连接
- min-idle: 5 # 连接池中的最小空闲连接
- cloud:
- stream:
- kafka:
- binder:
- brokers: 172.21.1.177:9092
- auto-create-topics: false
- min-partition-count: 3
- bindings:
- duty-message-input:
- destination: duty-message
- duty-message-json-output:
- destination: duty-message-json
- content-type: application/json
- producer:
- partitionKeyExpression: payload.park_id
- duty-message-json-input:
- destination: duty-message-json
- content-type: application/json
- group: ${spring.application.name}
- kafka:
- consumer:
- group-id: ${spring.application.name}
- mybatis:
- mapperLocations: classpath*:mapper/*Mapper.xml,classpath*:mapper/**/*Mapper.xml
- # 分页配置
- pagehelper:
- helper-dialect: mysql
- reasonable: true
- support-methods-arguments: true
- params: count=countSql
- ribbon:
- ReadTimeout: 60000
- ConnectTimeout: 60000
- logging:
- level:
- org.springframework: WARN
- cn.akeparking.zbcloud: DEBUG
- org.spring.springboot.dao: DEBUG
- org.apache.kafka: ERROR
- # freeswitch
- freeswitch:
- user-api-url: ${freeswitch.lua-api-url}?/usr/local/freeswitch/scripts/user.lua
- #OSS地址
- oss:
- domain: https://ake-bem-parking-test.oss-cn-shenzhen.aliyuncs.com/
- #PRMS初始化环境枪URL
- prms-init-enVironment-gun-url: http://testprms.yidianting.xin/api/public/ytj_camera_url
- ezviz:
- appKey: c9603efcdf654e478dd713e9fe06aa4e
- appSecret: ec92186e0824f51fc3359aeabe6d7d79
|