Spring Boot 集成 MyBatis
1.创建SpringBoot
(1 选择自动生成依赖
(2修改版本
<parent> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-parent</artifactId> <version>2.1.16.RELEASE</version> <relativePath/> <!-- lookup parent from repository --> </parent>
生成的mysql版本有时候有点问题,修改一下Mysql版本