Spring MongoDB Example Based on getting started guide Accessing Data with MongoDB. Run Run MongoDB in docker docker pull mongo:latest docker run --name mongodb -d -p 27017:27017 mongo:latest Run the app ./mvnw spring-boot:run