# 数据源配置 spring: kafka: bootstrap-servers: app2833:9094,app2834:9094,app2835:9094,app2836:9094,app2837:9094 #bootstrap-servers: localhost:9092 consumer: # 自动提交的时间间隔 在spring boot 2.X 版本中这里采用的是值的类型为Duration 需要符合特定的格式,如1S,1M,2H,5D auto-commit-interval: 1S # 该属性指定了消费者在读取一个没有偏移量的分区或者偏移量无效的情况下该作何处理: # latest(默认值)在偏移量无效的情况下,消费者将从最新的记录开始读取数据(在消费者启动之后生成的记录) # earliest :在偏移量无效的情况下,消费者将从起始位置读取分区的记录 auto-offset-reset: latest # 是否自动提交偏移量,默认值是true,为了避免出现重复数据和数据丢失,可以把它设置为false,然后手动提交偏移量 enable-auto-commit: false key-deserializer: org.apache.kafka.common.serialization.StringDeserializer value-deserializer: org.apache.kafka.common.serialization.StringDeserializer properties: security: protocol: SASL_PLAINTEXT sasl: mechanism: SCRAM-SHA-512 jaas: config: 'org.apache.kafka.common.security.scram.ScramLoginModule required username="user01" password="8b9dcf43";' listener: # 在侦听器容器中运行的线程数。 concurrency: 5 #listner负责ack,每调用一次,就立即commit ack-mode: manual_immediate missing-topics-fatal: false datasource: master: # 数据源1 jdbc-url: jdbc:mysql://74.10.28.2:3389/ax_seat_1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: ax_tj_lh password: Taiji@2022#lh driver-class-name: com.mysql.jdbc.Driver slave: # 数据源2 jdbc-url: jdbc:mysql://74.10.28.2:3389/ax_seat_1?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8 username: ax_tj_lh password: Taiji@2022#lh driver-class-name: com.mysql.jdbc.Driver # 项目相关配置 seat: # 名称 name: Seat # 版本 version: 3.5.0 # 版权年份 copyrightYear: 2021 # 实例演示开关 demoEnabled: true # 文件路径 示例( Windows配置D:/seat/uploadPath,Linux配置 /home/seat/uploadPath) profile: /home/seat/uploadPath # 获取ip地址开关 addressEnabled: false # 验证码类型 math 数组计算 char 字符验证 captchaType: char # 推送预警规则topic名称 topic1: warning_rule topic: dynamic_ais: test_merge1 static_ais: test_merge2 tianao_radar: taiji_ax_tianao_radar_fusion hlx_fusion: taiji_ax_hlx_fusion_bs_data hlx_cs_fusion: taiji_ax_hlx_fusion_cs_data hsj_ais: taiji_ax_dsjj_hsj_ais ztpt_ais: taiji_ax_ztpt_dynamic_ais statics_ais: statics_ais merge_ais: taiji_ax_ship_dynamic_fusion bd_ais: taiji_ax_beidou_dynamic_ship groupid: dynamic_ais: monitor_20220901 static_ais: monitor_20220901 tianao_radar: monitor_20220901 hlx_fusion: monitor_20220901 hlx_cs_fusion: monitor_20220901 hsj_ais: monitor_20220901 ztpt_ais: monitor_20220901 statics_ais: monitor_20220901 merge_ais: monitor_20220901 bd_ais: monitor_20220901 infovision: ip: 74.10.28.97 #host port: 443 #port appkey: 26491753 #key secret: nSWbgqChFBSdGPSnb59i #secret cameradefault: p: 352 t: -9 z: 1 punit: 15 plen: 1.23 tunit: 6 zunit: 9