问题:class path resource [.xml] cannot be opened because it does not exist或者是编译时mybatis的xml文件没有生成
产生原因:idea默认是不编译 src\main\java下的xml文件的
解决方法:
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.xml</include>
</includes>
</resource>
</resources>
正常编译后的目录