项目结构图
![springboot_multiDatasource_jiegoutu springboot_multiDatasource_jiegoutu](https://i-blog.csdnimg.cn/blog_migrate/a6486b0986968e43687e97d84f149e3a.png)
搭建步骤
pom
1<dependency>
2 <groupId>org.springframework.boot</groupId>
3 <artifactId>spring-boot-starter-web</artifactId>
4 </dependency>
5 <dependency>
6 <groupId>org.mybatis.spring.boot</groupId>
7 <artifactId>mybatis-spring-boot-starter</artifactId>
8 <version>2.1.1</version>
9 </dependency>
10
11 <dependency>
12 <groupId>org.projectlombok</groupId>
13 <artifactId>lombok</artifactId>
14 </dependency>
15 <dependency>
16 <groupId>mysql</groupId>
17 <artifactId>mysql-connector-java</artifactId>
18 <scope>runtime</scope>