idea: package下面的XML文件沒有複製
<!--解决Intellij构建项目时,target/classes目录下不存在mapper.xml文件 --> <resources> <resource> <directory>${basedir}/src/main/java/</directory> <includes> <include>**/*.*</include> </includes> </resource> <resource> <directory>${basedir}/src/main/resources/</directory> <includes> <include>**/*.*</include> </includes> </resource> </resources>
本文来自博客园,作者:huiy_小溪,转载请注明原文链接:https://www.cnblogs.com/huiy/p/13326787.html