赞
踩
启动 MongoDB 实例
引入相关依赖
主要的依赖为Web和MongoDB的starter,把下面代码加入到pom.xml中即可:
Web
MongoDB
starter
pom.xml
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-data-mongodb</