报错:找不到对应Mapper
原因:当时使用Springboot+MybatisPlus代码生成器,直接就启动了,算是一个小失误
解决:在Springboot启动项上添加@MapperScan注解,或者在每个Mapper上添加@Mapper注解
@MapperScan(basePackages = "com.misaki.mapper") @SpringBootApplication public class TestApplication { public static void main(String[] args) { SpringApplication.run(TestApplication.class, args); } }