[英]Spring boot mongoDB jars
What is the difference between these Spring Boot
jars
. 这些
Spring Boot
jars
之间有什么区别。
mongodb-driver-core jar mongodb-driver-core jar
What I understand in those all is that mongodb-driver
is the java driver for mongoDB. 我所了解的是
mongodb-driver
是mongoDB的Java驱动程序。 And spring-boot-starter-data-mongodb
is starter like spring boot has for many ( spring-boot-starter-web
, spring-boot-starter-test
). spring-boot-starter-data-mongodb
就像spring boot对于许多启动器一样( spring-boot-starter-web
, spring-boot-starter-test
)。
Can someone please explain their role in Spring boot
. 有人可以解释一下他们在
Spring boot
的作用。
mongodb-driver-core: The Java operations layer for the MongoDB Java Driver. mongodb-driver-core: MongoDB Java驱动程序的Java操作层。 Third parties can ' + 'wrap this layer to provide custom higher-level APIs.
第三方可以“ +”包装该层以提供自定义的更高级别的API。
mongodb-driver: The driver which allows you to connect to MongoDB databases from java applications. mongodb-driver:该驱动程序可让您从Java应用程序连接到MongoDB数据库。
spring-data-mongodb: The library you need to use Spring Data with MongoDB in your project, which might not be Spring Boot based. spring-data-mongodb:您的项目中需要在MongoDB中使用Spring Data的库,该库可能不是基于Spring Boot的。
spring-boot-starter-data-mongodb: The starter for using Spring Data Mongo DB in Spring Boot, with everything you need for that. spring-boot-starter-data-mongodb:在Spring Boot中使用Spring Data Mongo DB的入门程序,包括您所需的一切。
Note that each of these libraries makes use of the other ones above, so it increases abstraction. 请注意,这些库中的每一个都利用了上面的其他库,因此增加了抽象性。
See also: 也可以看看:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.