文章目录 问题描述 问题原因 解决方案 问题描述 在spring boot 2.2.2项目中,使用mybatis-spring-boot-starter,引入如下: <dependency> <groupId>org.mybatis.spring.boot</groupId> <artifactId>mybatis-spring-boot-starter</artifactId> <version>2.1.1</version> </dependency