[Guide] Set up an embedded MongoDB for testing in Spring Boot

Posted on

This guide will show you a nifty trick to ease your testing in projects using MongoDB in Spring Boot. Many solutions seem to appear when you search for this, but the simplest solution seems to be the build in auto-configuration for Flapdoodle’s embedded Mongo. We used Maven for our project, and added the following dependency to the pom.xml […]