:tk.mybatis.mapper.provider.base.BaseSelectProvider.<init>() 错误引入MapperScan:import org.mybatis.spring.annotation.MapperScan;解决问题(错误引入包导致) 正确的应该是(tk):importtk.mybatis.spring.annotation.MapperScan; 智能推荐 解决springboot-mybatis报错Invalid bound statement (not found)dao层与mappe...
第三步:配置启动类 要加这个包扫描路径@MapperScan(basePackages = "com.nico.mybatis.mapper"),先注释掉 //@MapperScan(basePackages = "com.nico.mybatis.mapper")@SpringBootApplicationpublicclassMyMybatisApplication{publicstaticvoidmain(String[]args){SpringApplication.run(MyMybatisApplication.class,args);}...