当我们再idea中学习MyBatis框架的时候会遇到这样的问题:
Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/salmon/mapper/userMapper.xml
解决方式:
我们只需要在pom.xml文件中的build标签里面添加如下内容:
src/main/java **/*.xml
添加之后即可成功运行:

当我们再idea中学习MyBatis框架的时候会遇到这样的问题:
Error parsing SQL Mapper Configuration. Cause: java.io.IOException: Could not find resource com/salmon/mapper/userMapper.xml
解决方式:
我们只需要在pom.xml文件中的build标签里面添加如下内容:
src/main/java **/*.xml
添加之后即可成功运行: