不多说,直接上排查方法:
步骤1、pom 引入 依赖mybatis-spring-boot-starter2、启动类中 注解扫描mapper接口@MapperScan(basePackages = "com.xxx.mapper")
3、配置文件application.properties中介入xml地址mybatis.mapper-locations=classpath:mapper/*.xml