2020
10-09
10-09
SpringBoot操作mongo实现方法解析
一、创建项目并导入相关依赖<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-mongodb</artifactId></dependency><dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-web</artifactId></dependency>二、mongo相关配置spring.data.mongodb.host=192.168.21.134spring.data.mongodb.authentication-database=adminspring.data.mongodb....
继续阅读 >