Mybatis-Plus - Invalid bound statement (not found)

记一个坑,之前在项目中直接调用IService接口的list()方法,报了如下错误:
在这里插入图片描述
然后从头到尾检查了一遍配置都没有错,最后发现是SessionFactoryBean引用成Mybatis的了,应该要引用Mybatis-Plus的才对。

解决方法:将配置中的SqlSessionFactoryBean替换为MybatisSqlSessionFactoryBean在这里插入图片描述

发布了46 篇原创文章 · 获赞 0 · 访问量 2014

猜你喜欢

转载自blog.csdn.net/hon_vin/article/details/103375731