IDEA中Spring Boot项目MyBaits提示Invalid bound statement (not found)错误

来源:互联网 发布:淘宝 中国质造 编辑:程序博客网 时间:2024/05/22 12:09

该错误提示没有找到相对应的XML文件,找了很长时间发现在编译后的classes路径下并没有相应的XML文件,这是因为IDEA在编译的时候忽略掉了XML文件

这里写图片描述

解决办法是在pom.xml文件里面加上以下的代码

 <build>        <resources>            <resource>                <directory>src/main/resoureces</directory>                <excludes>                    <exclude>**/*.java</exclude>                </excludes>                <filtering>true</filtering>            </resource>        </resources>    </build>

这样重新编译后class文件里面就有对应的xml文件包了

阅读全文
0 0
原创粉丝点击