How to configure Embedded MongoDB In Spring Boot Project | How to use Embedded MongoDB in our project
😂 How to do work with Embedded Spring boot MongoDB.If you do work with we don't require any configurations
Only you have to do is Extends MongoRepositery<> Interface in your project create object use it.
1. Spring Data MongoDB
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-mongodb</artifactId>
</dependency>
2. Embedded Spring boot MongoDB
<dependency>
<groupId>de.flapdoodle.embed</groupId>
<artifactId>de.flapdoodle.embed.mongo</artifactId>
//Remove the scope tag in this place
other wise we will get error;
</dependency>
Comments
Post a Comment