瀏覽代碼

抄表记录写入到MongoDB PengDi@2021/1/6

pengdi@zoniot.com 4 年之前
父節點
當前提交
53baa1e5a7
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      meter-reading-common/src/main/resources/application-common-sit.properties

+ 3 - 0
meter-reading-common/src/main/resources/application-common-sit.properties

@@ -37,6 +37,9 @@ spring.redis.lettuce.pool.max-wait=100
 spring.redis.lettuce.pool.max-idle=8
 spring.redis.lettuce.pool.min-idle=0
 spring.redis.lettuce.shutdown-timeout=100
+######################################################MongoDB配置#####################################################
+spring.data.mongodb.uri=mongodb://114.135.61.188:17017/meter-reading-database
+logging.level.org.springframework.data.mongodb.core=DEBUG
 #########################################业务配置############################################
 #定义每个任务的数据集大小
 task.chunk.size=2000