参考: 

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

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

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

 

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

 

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

解决办法:

1 可以手动拷贝过去

2 在pom中配置:

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

 

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

 

相关文章:

  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-10-26
  • 2021-05-14
  • 2021-04-26
相关资源
相似解决方案