#springboot

依赖: pom.xml <dependency> <groupId>com.baomidou</groupId> <artifactId>dynamic-datasource-spring-boot-starter</artifactId> <version>${baomidou.version}</version> </dependency> 数据源配置: application.yml