Top "Spring-mongo" questions

A spring-data connector that enables integration with MongoDB document database.

Spring Boot Mongo - E11000 Duplicate Key

I'm building a simple REST api with spring-boot-starter-data-mongodb and I always get a E11000 duplicate key error when attempting to …

java spring mongodb spring-data-mongodb spring-mongo
Spring mongodb add or update a list of documents

I have a list of records like [ {"id":"1", "name":"a", "user":"u1"}, {"id":"2", "name":"b", "user":"u1"}, {"id":"3", "name":"c", "…

spring mongodb spring-data-mongodb spring-mongo spring-mongodb
Spring Data mongo to insert null values to DB

I am using Spring data mongo to insert a record to Mongo, here is my code mongoTemplate.save(person,"personCollection"); …

java mongodb spring-data-mongodb spring-mongo
How to write union queries in mongoDB

Is it possible to write union queries in Mongo DB using 2 or more collections similar to SQL queries? I'm using …

mongodb union spring-mongo
Difference between MongoFactoryBean and SimpleMongoDbFactory

I am setting up a MongoDB Spring MVC application and trying to use Service, DAO pattern. I read the Spring-Data-MongoDB …

java mongodb spring-mongo