0
点赞
收藏
分享

微信扫一扫

Invalid bound statement (not found)

莞尔小迷糊 2022-07-27 阅读 100

Invalid bound statement (not found)

问题描述及解决

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

项目启动报找不到statement,仔细检查了下没发现了配置有问题,看下是不是编译后的文件有问题?发现xml没有编译进来,看了pom文件的​​<build></build>​​,发现通过spring.io初始化项目,bulid默认是没有把xml打包到target下面的,设置下就可以了。

<build>
<resources>
<resource>
<directory>src/main/resources/</directory>
</resource>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
</build>

更多信息请关注公众号:「软件老王」,关注不迷路,软件老王和他的IT朋友们,分享一些他们的技术见解和生活故事。

Invalid bound statement (not found)_spring



举报

相关推荐

0 条评论