3

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):...

 1 year ago
source link: https://blog.51cto.com/u_15676215/5790401
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cs.zsl.mapper.Syste

精选 原创

Adazsl 2022-10-24 16:48:46 ©著作权

文章标签 xml java 解决方法 文章分类 MySQL 数据库 阅读数238

1.使用SpringBoot+MyBaits组合,运行代码出现如下异常

出现的异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)

是由于mapper的配置文件和它之间的编译没有通过

2.解决方法:在pom.xml中加入以下代码即可

(1)我的mapper

org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cs.zsl.mapper.Syste_解决方法

(2)在pom.xml中的build中加入以下代码

<resources>
<!--编译src/main/java目录下的xml文件-->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): cs.zsl.mapper.Syste_解决方法_02
  • 1
  • 收藏
  • 1评论
  • 分享
  • 举报

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK