소스 검색

MongoDB连接

wangli 4 년 전
부모
커밋
1e0d35896b
2개의 변경된 파일11개의 추가작업 그리고 0개의 파일을 삭제
  1. 5 0
      sms_water/src/main/resources/application-prd.properties
  2. 6 0
      sms_water/src/main/resources/application-sit.properties

+ 5 - 0
sms_water/src/main/resources/application-prd.properties

@@ -17,6 +17,11 @@ spring.jackson.time-zone=GMT+8
 #spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
 #spring.jackson.joda-date-time-format: yyyy-MM-dd HH:mm:ss
 
+
+#mongodb
+spring.data.mongodb.uri=mongodb://127.0.0.1:27017/sms
+logging.level.org.springframework.data.mongodb.core=DEBUG
+
 # redis
 spring.redis.host=114.135.61.188
 spring.redis.port=26379

+ 6 - 0
sms_water/src/main/resources/application-sit.properties

@@ -17,6 +17,12 @@ spring.jackson.time-zone=GMT+8
 #spring.jackson.date-format=yyyy-MM-dd HH:mm:ss
 #spring.jackson.joda-date-time-format: yyyy-MM-dd HH:mm:ss
 
+
+#mongodb
+spring.data.mongodb.uri=mongodb://127.0.0.1:27017/sms
+logging.level.org.springframework.data.mongodb.core=DEBUG
+
+
 # redis
 spring.redis.host=114.135.61.188
 spring.redis.port=26379