记录一下mybatis-plus报"Invalid bound statement (not found): com,gykg.yizhichun,mapper,HospitalSetMapper,insert"问题

发布时间 2023-07-10 09:52:58作者: 妞妞猪

最近在学习使用用的mybatis-plus生成器生成的controller,entity,mapper,service,serviceImp,然后运行mapper.insert插入操作,报"Invalid bound statement (not found): com,gykg.yizhichun,mapper,HospitalSetMapper,insert"问题,在网上找了很多解决方法,都没有效果。最后看了这位博主(https://blog.csdn.net/Jessy_Huang/article/details/129028124)的帖子,他说  

如果项目中需要同时使用mybatis和plus,只需要保留mybaits-plus的启动器即可。同时存在会导致mybatis-plus启动器失效,同时mybatis-plus的启动器本身包含mybatis启动器。注释掉pom中的依赖,启动日志显示Mybatis-Plus的logo,项目正常启动。

然后我一看,确实mybaits和mybatisplus依赖同时开着, 注释mybatis依赖,运行,成功!

附上图片

 

 

参考

https://blog.csdn.net/l_zl2021/article/details/129396769

https://blog.csdn.net/Jessy_Huang/article/details/129028124

https://blog.csdn.net/Cross_self/article/details/107068529