[Invalid bound statement (not found)

# 关于[Invalid bound statement (not found) 终极解决办法]
## 报错场景

 

## 项目位置

 

## 分析
这里我的xml和map文件是放在一起的,这里就有一个问题,就是启动类包扫描的时候找不到我的xml导致的

## 解决方案
对应的pom.xml添加如下

<build>
<resources>
<resource>
<directory>src/main/java</directory><!--所在的目录-->
<includes><!--包括目录下的.properties,.xml文件都会扫描到-->
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
<filtering>false</filtering>
</resource>
</resources>
</build>

  

posted @ 2022-03-14 17:03  大南好南  阅读(45)  评论(0)    收藏  举报