MyBatis-plus invalid bound statement (not found) 问题解决
系统升级遇到MyBatis-plus invalid bound statement (not found) 问题解决。
调用baseMapper的insert方法却遇到了invalid bound statement (not found) 。。。。。。由于使用baseMapper的自带的方法,所以也就没有对应的XXXMapper.xml文件,最终问题所在:将
SqlSessionFactoryBean bean = new SqlSessionFactoryBean();
改为:
MybatisSqlSessionFactoryBean bean = new MybatisSqlSessionFactoryBean();
最后附上官网解决方法:https://baomidou.com/guide/faq.html#%E5%87%BA%E7%8E%B0-invalid-bound-statement-not-found-%E5%BC%82%E5%B8%B8