3
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found):...
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
精选 原创1.使用SpringBoot+MyBaits组合,运行代码出现如下异常
出现的异常:org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
是由于mapper的配置文件和它之间的编译没有通过
2.解决方法:在pom.xml中加入以下代码即可
(1)我的mapper
(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>
<!--编译src/main/java目录下的xml文件-->
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
<filtering>true</filtering>
</resource>
</resources>
- 1赞
- 收藏
- 1评论
- 分享
- 举报
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK