多模块,在使用mybatis-plus时,找不到其他模块的xml 报org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 错误发现target下mapper包中的xml文件夹没有被编译,在父工程里的pom文件...
多模块,在使用mybatis-plus时,找不到其他模块的xml 报org.apache.ibatis.binding.BindingException: Invalid bound statement (not found) 错误
发现target下mapper包中的xml文件夹没有被编译,在父工程里的pom文件中<build></build>标签添加如下内容
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<includes>
<include>**/*.yml</include>
<include>**/*.properties</include>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
织梦狗教程
本文标题为:【SpringBoot】org.apache.ibatis.binding.BindingException: Invalid bound statement (not found)
基础教程推荐
猜你喜欢
- Apache CarbonData 1.0.0发布及其新特性介绍 2023-09-11
- 为Win2003服务器打造铜墙铁壁的方法步骤 2022-09-01
- Apache Kafka 2.5 稳定版发布,新特性抢先看 2023-09-11
- P3 利用Vulnhub复现漏洞 - Apache SSI 远程命令执行漏洞 2023-09-10
- Centos 安装Django2.1 2023-09-24
- windows环境下apache-apollo服务器搭建 2023-09-10
- RFO SIG之openEuler AWS AMI 制作详解 2022-12-28
- Docker容器操作方法详解 2022-11-13
- 通过StatefulSet部署有状态服务应用实现方式 2022-10-01
- Centos7 nginx的安装以及开机自启动的设置 2023-09-22
