具体报错信息:
搜了资料,可能是版本不匹配的问题, 我用的是Spring Boot 3.x,但是MyBatis Spring Boot Starter 的版本是 1.3.2
然后把
MyBatis Spring Boot Starter 的版本换成了3.0.3
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>3.0.3</version>
</dependency>
-------------------------------------------------------------------------------------------------------------------------------
改了之后注意一下吧,一直连接web显示是错误界面,然后网上查了半天没出结果,最后又多了几行报错,发现是SQL语句语法问题