Mybatis出现找不到mapper.xml文件的问题

如果出现以下错误:
Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/zgz/entity/UserMapper.xml
有可能是编译的时候,没将xml文件编译进去,在intellij使用maven进行build的时候,需要进行以下配置将xml文件进行编译:



src/main/java

*/.xml



你可能感兴趣的:(Mybatis出现找不到mapper.xml文件的问题)