.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box; 1 I have upgraded my springBoot version from 1.5.4 to 2.1.0.RELEASE . I have the following piece of code which is creating trouble. MongoCollection<Document> collection1 = mongoTemplate.getCollection(collection); MapReduceCommand cmd = new MapReduceCommand(collection1, map, reduce, "sd", MapReduceCommand.OutputType.INLINE, null); MapReduceOutput out = collection1.mapReduce(cmd); Now getCollection() method returns MongoCollection and MapReduceCommand accepts DB collection. So is there any way to convert between the two ? java database mongodb spring-boot share | improve this question asked Nov 16 '18 at 13:38 Jayesh Choudhary Jayesh Choudhary 379 4 15 Then use the MongoCollection.mapReduce() method like you were supposed to do when the code was ...