跳到主要内容

mongo

集成

<dependency>
<groupId>com.manatee.manatee-lowcode</groupId>
<artifactId>lowcode-mongo</artifactId>
<version>${lowcode.version}</version>
</dependency>

项目配置

spring:
mongodb:
host: xxx.xxx.xx.xx
port: xxxxx
username: xxxx
password: xxxx
source: 用于指定使用mongo的哪一个库

启动类修改

@SpringBootApplication(exclude = MongoAutoConfiguration.class)