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.yi.seckill.mapper.UserMapper.selectById] with root cause
mybatis-plus运行查询时,一直显示方法未找到,可是ctrl可以跳转,可以找到方法。
最后看了一圈没有问题,发现是版本问题。版本太高有点不兼容。
因为我是为了预防错误在其他项目上生成mybatis-plus相关的文件,版本不一样。