2020
10-30
10-30
SpringBoot配置MongoDB多数据源的方法步骤
1、项目构建添加pom文件<dependency><groupId>org.springframework.boot</groupId><artifactId>spring-boot-starter-data-mongodb</artifactId></dependency>2、在application.properties中添加配置##startmongodbforbasic#----------------------------------------------basic.spring.data.mongodb.host=localhostbasic.spring.data.mongodb.port=27016basic.spring.data.mongodb.username=auto_computebasic.spring....
继续阅读 >