解决MybatisPlus中Invalid bound statement (not found)..错误

场景:

使用MybatisPlus操作数据库,对应的Mapper继承MybatisPlus中的BaseMapper,但是调用selectList时出现Invalid bound statement (not found)错误

原因:

继承BaseMapper时引入错误的包,真正的的包路径是:import com.baomidou.mybatisplus.core.mapper.BaseMapper;

总结:

开发时一定要注意细节,否则很小的地方也会出现令人苦恼的bug 

发布了30 篇原创文章 · 获赞 15 · 访问量 2918

猜你喜欢

转载自blog.csdn.net/qq_40891009/article/details/103242315
今日推荐