|
@@ -0,0 +1,61 @@
|
|
|
+############################################日志配置###############################################
|
|
|
+logging.level.root=info
|
|
|
+logging.file.path=/opt/sit/iot/processor/logs
|
|
|
+###########################################数据库配置##############################################
|
|
|
+spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
|
|
+spring.datasource.type=com.alibaba.druid.pool.DruidDataSource
|
|
|
+spring.datasource.url=jdbc:mysql://114.135.61.188:33306/smart_city_sit_6_10?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&zeroDateTimeBehavior=convertToNull
|
|
|
+spring.datasource.name=smart_city
|
|
|
+spring.datasource.username=root
|
|
|
+spring.datasource.password=100Zone@123
|
|
|
+spring.datasource.druid.initial-size=20
|
|
|
+spring.datasource.druid.min-idle=5
|
|
|
+spring.datasource.druid.max-active=50
|
|
|
+spring.datasource.druid.max-wait=60000
|
|
|
+spring.datasource.druid.time-between-eviction-runs-millis=60000
|
|
|
+spring.datasource.druid.min-evictable-idle-time-millis=300000
|
|
|
+spring.datasource.druid.validation-query=SELECT 1
|
|
|
+spring.datasource.druid.test-while-idle=true
|
|
|
+spring.datasource.druid.test-on-borrow=true
|
|
|
+spring.datasource.druid.test-on-return=false
|
|
|
+spring.datasource.druid.pool-prepared-statements=true
|
|
|
+spring.datasource.druid.max-pool-prepared-statement-per-connection-size=20
|
|
|
+spring.datasource.druid.filters=stat,wall
|
|
|
+spring.datasource.druid.connection-properties=druid.stat.mergeSql=true;druid.stat.slowSqlMillis=5000
|
|
|
+###########################################MyBatis配置##############################################
|
|
|
+mybatis.mapper-locations=classpath*:mapper/*.xml
|
|
|
+mybatis.type-aliases-package=com.zcxk.zoniot.data.processor.model
|
|
|
+mybatis.configuration.map-underscore-to-camel-case=true
|
|
|
+mybatis.configuration.log-impl=org.apache.ibatis.logging.stdout.StdOutImpl
|
|
|
+mybatis.configuration.use-column-label=true
|
|
|
+###########################################MongoDB配置##############################################
|
|
|
+spring.data.mongodb.uri=mongodb://114.135.61.188:17017/water-iot-database
|
|
|
+logging.level.org.springframework.data.mongodb.core=DEBUG
|
|
|
+#############################################Redis配置##############################################
|
|
|
+spring.redis.host=114.135.61.188
|
|
|
+spring.redis.port=26379
|
|
|
+spring.redis.password=zoniot
|
|
|
+spring.redis.database=1
|
|
|
+spring.redis.timeout=36000
|
|
|
+spring.redis.lettuce.pool.max-active=8
|
|
|
+spring.redis.lettuce.pool.max-wait=300
|
|
|
+spring.redis.lettuce.pool.max-idle=8
|
|
|
+spring.redis.lettuce.pool.min-idle=1
|
|
|
+spring.redis.lettuce.shutdown-timeout=300
|
|
|
+#######################################内部消息总线Kafka配置#####################################
|
|
|
+spring.kafka.bootstrap-servers=10.0.0.161:6377
|
|
|
+spring.kafka.producer.retries=0
|
|
|
+spring.kafka.producer.batch-size=4096
|
|
|
+spring.kafka.producer.buffer-memory=40960
|
|
|
+#设备数据主题
|
|
|
+spring.kafka.consumer.auto-offset-reset=latest
|
|
|
+spring.kafka.consumer.group-id=data-processor-sit
|
|
|
+spring.kafka.consumer.enable-auto-commit=true
|
|
|
+spring.kafka.consumer.key-deserializer=org.apache.kafka.common.serialization.StringDeserializer
|
|
|
+spring.kafka.consumer.value-deserializer=org.apache.kafka.common.serialization.StringDeserializer
|
|
|
+device.data.topic=bus_device_data_topic_sit
|
|
|
+#设备告警主题
|
|
|
+device.alarm.topic=sc_alarm_topic_sit
|
|
|
+
|
|
|
+
|
|
|
+
|