使用idea的springboot项目出现org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)


参考: 

https://www.cnblogs.com/lfm601508022/p/InvalidBoundStatement.html

https://blog.csdn.net/xsggsx/article/details/77248588

原因 : 编译后xml文件没有编译到class文件夹内

 

 

解决办法:

1 可以手动拷贝过去

2 在pom中配置:

 

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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM