Selaa lähdekoodia

MongoDB连接

wangli 4 vuotta sitten
vanhempi
commit
1e0d35896b

+ 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