Mehraj Malik
Mehraj Malik

Reputation: 15844

Spring boot mongoDB jars

What is the difference between these Spring Boot jars.

Can someone please explain their role in Spring boot.

Upvotes: 2

Views: 1115

Answers (1)

Aritz
Aritz

Reputation: 31651

mongodb-driver-core: The Java operations layer for the MongoDB Java Driver. Third parties can ' + 'wrap this layer to provide custom higher-level APIs.

mongodb-driver: The driver which allows you to connect to MongoDB databases from java applications.

spring-data-mongodb: The library you need to use Spring Data with MongoDB in your project, which might not be Spring Boot based.

spring-boot-starter-data-mongodb: The starter for using Spring Data Mongo DB in Spring Boot, with everything you need for that.

Note that each of these libraries makes use of the other ones above, so it increases abstraction.

See also:

Upvotes: 5

Related Questions