**
关于SpringBoot中的Mybatis使用PageHelper插件报错: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): xxxx
**
@SpringBootApplication
@MapperScan("com.xuwen.moudels")
public class XuApiApplication {
public static void main(String[] args) {
SpringApplication.run(XuApiApplication.class, args);
}
}
解决方法:
错误写法
@MapperScan("com.xuwen.moudels")//这个路径要写到dao的目录下
@MapperScan("com.xuwen.moudels.ums.mapper")
路径和目录如下: