|
@@ -0,0 +1,196 @@
|
|
|
|
|
+########################################################################################################################
|
|
|
|
|
+# 全局配置 #
|
|
|
|
|
+########################################################################################################################
|
|
|
|
|
+spring:
|
|
|
|
|
+ # 数据源
|
|
|
|
|
+ datasource:
|
|
|
|
|
+ driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
|
|
+ username: ${mvn.spring.datasource.username}
|
|
|
|
|
+ password: ${mvn.spring.datasource.password}
|
|
|
|
|
+ hikari:
|
|
|
|
|
+ idle-timeout: 10000
|
|
|
|
|
+ max-lifetime: 30000
|
|
|
|
|
+ minimum-idle: 5
|
|
|
|
|
+ maximum-pool-size: 10
|
|
|
|
|
+ # Redis配置
|
|
|
|
|
+ redis:
|
|
|
|
|
+ host: ${mvn.spring.redis.host}
|
|
|
|
|
+ port: ${mvn.spring.redis.port}
|
|
|
|
|
+ password: ${mvn.spring.redis.password}
|
|
|
|
|
+ database: ${mvn.spring.redis.database}
|
|
|
|
|
+ # RabbitMq配置
|
|
|
|
|
+ rabbitmq:
|
|
|
|
|
+ host: ${mvn.spring.rabbitmq.host}
|
|
|
|
|
+ port: ${mvn.spring.rabbitmq.port}
|
|
|
|
|
+ username: ${mvn.spring.rabbitmq.username}
|
|
|
|
|
+ password: ${mvn.spring.rabbitmq.password}
|
|
|
|
|
+ virtual-host: ${mvn.spring.rabbitmq.virtual-host}
|
|
|
|
|
+ mvc:
|
|
|
|
|
+ # 抛出404异常
|
|
|
|
|
+ throw-exception-if-no-handler-found: true
|
|
|
|
|
+ cloud:
|
|
|
|
|
+ stream:
|
|
|
|
|
+ bindings:
|
|
|
|
|
+ # 机构禁用管道
|
|
|
|
|
+ org_disable_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_disable_channel
|
|
|
|
|
+ org_disable_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_disable_channel
|
|
|
|
|
+ # 删除机构管道
|
|
|
|
|
+ org_del_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_del_channel
|
|
|
|
|
+ org_del_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_del_channel
|
|
|
|
|
+ # 机构名称修改管道
|
|
|
|
|
+ org_modify_name_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_modify_name_channel
|
|
|
|
|
+ org_modify_name_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_modify_name_channel
|
|
|
|
|
+ # 机构迁移管道
|
|
|
|
|
+ org_transfer_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_transfer_channel
|
|
|
|
|
+ org_transfer_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: org_transfer_channel
|
|
|
|
|
+ # 添加设备管道
|
|
|
|
|
+ device_add_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: device_add_channel
|
|
|
|
|
+ device_add_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: device_add_channel
|
|
|
|
|
+ # 删除设备管道
|
|
|
|
|
+ device_del_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: device_del_channel
|
|
|
|
|
+ device_del_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: device_del_channel
|
|
|
|
|
+ # 添加小区管道
|
|
|
|
|
+ xq_add_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_add_channel
|
|
|
|
|
+ xq_add_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_add_channel
|
|
|
|
|
+ # 小区授权管道
|
|
|
|
|
+ xq_authorize_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_authorize_channel
|
|
|
|
|
+ xq_authorize_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_authorize_channel
|
|
|
|
|
+ # 小区取消授权管道
|
|
|
|
|
+ xq_untying_authorize_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_untying_authorize_channel
|
|
|
|
|
+ xq_untying_authorize_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: xq_untying_authorize_channel
|
|
|
|
|
+ # 同步账号信息管道
|
|
|
|
|
+ sync_account_channel:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ # 禁用账号管道
|
|
|
|
|
+ account_disable_channel:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ # 设备App更新管道
|
|
|
|
|
+ device_update_channel:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ # 同步设备人脸广告数据管道
|
|
|
|
|
+ sync_face_advert_data_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_face_advert_data_channel
|
|
|
|
|
+ sync_face_advert_data_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_face_advert_data_channel
|
|
|
|
|
+ # 同步设备闲时广告数据管道
|
|
|
|
|
+ sync_leisure_advert_data_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_leisure_advert_data_channel
|
|
|
|
|
+ sync_leisure_advert_data_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_leisure_advert_data_channel
|
|
|
|
|
+ # 同步设备公告数据管道
|
|
|
|
|
+ sync_notice_data_channel_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_notice_data_channel
|
|
|
|
|
+ sync_notice_data_channel_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: sync_notice_data_channel
|
|
|
|
|
+ # 广告下发任务回调管道
|
|
|
|
|
+ advert_task_callback_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: advert_task_callback
|
|
|
|
|
+ advert_task_callback_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: advert_task_callback
|
|
|
|
|
+ # 公告下发任务回调管道
|
|
|
|
|
+ notice_task_callback_output:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: notice_task_callback
|
|
|
|
|
+ notice_task_callback_input:
|
|
|
|
|
+ group: ${spring.application.name}
|
|
|
|
|
+ destination: notice_task_callback
|
|
|
|
|
+
|
|
|
|
|
+# mybatis-plus conf
|
|
|
|
|
+mybatis-plus:
|
|
|
|
|
+ # 如果是放在resource目录 classpath:/mapper/*Mapper.xml
|
|
|
|
|
+ mapper-locations: classpath:/mapper/*Mapper.xml
|
|
|
|
|
+ global-config:
|
|
|
|
|
+ # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
|
|
|
|
|
+ id-type: 0
|
|
|
|
|
+ # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
|
|
|
|
|
+ field-strategy: 0
|
|
|
|
|
+ # 驼峰下划线转换
|
|
|
|
|
+ db-column-underline: true
|
|
|
|
|
+ # SQL 注入器
|
|
|
|
|
+ sql-injector: com.baomidou.mybatisplus.mapper.LogicSqlInjector
|
|
|
|
|
+ configuration:
|
|
|
|
|
+ # 配置返回数据库(column下划线命名&&返回java实体是驼峰命名),自动匹配无需as(没开启这个,SQL需要写as: select user_id as userId)
|
|
|
|
|
+ map-underscore-to-camel-case: true
|
|
|
|
|
+ cache-enabled: false
|
|
|
|
|
+
|
|
|
|
|
+# feigns 配置
|
|
|
|
|
+feign:
|
|
|
|
|
+ hystrix:
|
|
|
|
|
+ enabled: true
|
|
|
|
|
+
|
|
|
|
|
+#hystrix的超时时间
|
|
|
|
|
+hystrix:
|
|
|
|
|
+ command:
|
|
|
|
|
+ default:
|
|
|
|
|
+ execution:
|
|
|
|
|
+ timeout:
|
|
|
|
|
+ enabled: true
|
|
|
|
|
+ isolation:
|
|
|
|
|
+ thread:
|
|
|
|
|
+ timeoutInMilliseconds: 30000
|
|
|
|
|
+#ribbon的超时时间
|
|
|
|
|
+ribbon:
|
|
|
|
|
+ ReadTimeout: 30000
|
|
|
|
|
+ ConnectTimeout: 30000
|
|
|
|
|
+
|
|
|
|
|
+# FastDfs配置
|
|
|
|
|
+fdfs:
|
|
|
|
|
+ # 跟踪器列表
|
|
|
|
|
+ tracker-list:
|
|
|
|
|
+ - fast-dfs-server:22122
|
|
|
|
|
+
|
|
|
|
|
+# 分布式事务服务端地址
|
|
|
|
|
+tx-lcn:
|
|
|
|
|
+ client:
|
|
|
|
|
+ manager-address: smart-house-lcn:8070
|
|
|
|
|
+
|
|
|
|
|
+# 亲邻配置
|
|
|
|
|
+qinlin:
|
|
|
|
|
+ appId: ${mvn.qinlin.appid}
|
|
|
|
|
+ appSecret: ${mvn.qinlin.app.secret}
|
|
|
|
|
+ version: ${mvn.qinlin.version}
|
|
|
|
|
+ apiHost: ${mvn.qinlin.api.host}
|