这篇文章主要介绍了使用mybatis-plus报错Invalid bound statement (not found)错误,文中通过示例代码介绍的非常详细,对大家的学习或者工作具有一定的参考学习价值,需要的朋友们下面随着小编来一起学习学习吧
近期使用Springboot集成Mybatisplus,执行insert时一直报错,提示错误如下:
Invalid bound statement (not found): xx.insert
mapper继承BaseMapper:
BaseMapper有insert方法如下:
service调用mapper.insert(对象)报错
某度查找资料均不能解决问题,最终经查阅官方文档比对得知是缺少jar包导致。在pom.xml中引入:
com.baomidoumybatis-plus-boot-starter3.1.2 com.baomidoumybatis-plus-annotation3.1.2 com.baomidoumybatis-plus-extension3.1.2
以上就是使用mybatis-plus报错Invalid bound statement (not found)错误的详细内容,更多请关注gaodaima搞代码网
来源gao!%daima.com搞$代*!码$网
其它相关文章!