1 项目简介
- 项目引入了
mybatis-plus-boot-starter
方便操作数据库 - 配置了3个数据源,做动态数据源实验
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.0.5.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-boot-starter</artifactId>
<version>3.0.1</version>
</dependency>
import com.alibaba.druid.spring.boot.autoconfigure