springboot新增表,执行查询时报错
2020-05-15 16:17:22,781 ERROR o.a.j.l.DirectJDKLog [http-nio-8085-exec-6] 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.**.mapper.BedMapper.findByPage] with root cause
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): com.**.mapper.BedMapper.findByPage
排查后发现是xml文件的namespace的路径错误,因为是其他地方生成复制过来的,此处忘记改了
<mapper namespace="com.**.mapper.BedMapper">