Christophe Labouisse bio photo

Christophe Labouisse

Freelance Java expert, Docker enthusiast

Email Twitter Google+ LinkedIn Github Stackoverflow Hopwork

Although MongoDB cannot be actually embedded there is a nice tool mimicking the behavior of an actual embedded database. When writing Spring Boot application it is quite easy to replace the connection to a Mongo server with a connection to an embedded server with a simple configuration file.

The following configuration file should do the trick and will enable you to transparently use an embedded Mongo server instead of connecting to an actual one.