我使用了MyBatis-plus代码生成器自动生成代码,在controller层直接进行了查询,但是总是报错,使用debug调试后,发现service层中自带方法list()中显示baseMapper=null,并且mapperClass=null,
项目成功运行之后,访问方法地址时报错:
2023-03-12 21:07:30.127 ERROR 12416 --- [nio-8001-exec-1] o.a.c.c.C.[.[.[/].[dispatcherServlet] : Servlet.service() for servlet [dispatcherServlet] in context with path [] threw exception [Request processing failed; nested exception is org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.cxy.eduservice.mapper.EduTeacherMapper.selectList] with root cause
debug时显示
求解哇!