报错Could not find resource cn/smbms/dao/provider/ProviderMapper.xml
Posted 请叫我小老弟
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了报错Could not find resource cn/smbms/dao/provider/ProviderMapper.xml相关的知识,希望对你有一定的参考价值。
原因:由于idea不会编译src下的java目录下的xml文件,所以找不到xml文件
方案一:在pom.xml中添加如下内容
<build> <resources> <resource> <directory>src/main/java</directory> <includes> <include>**/*.xml</include> </includes> </resource> </resources> </build>
方案二:把xml文件放在resources目录下
以上是关于报错Could not find resource cn/smbms/dao/provider/ProviderMapper.xml的主要内容,如果未能解决你的问题,请参考以下文章
报错Could not find resource cn/smbms/dao/provider/ProviderMapper.xml
Mybatis 报错 java.io.IOException: Could not find resource mybatis-config.xml
解决K8s报错:Error: error installing: the server could not find the requested resource
java.io.IOException: Could not find resource com/xxx/xxxMapper.xml
解决Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/cq