明明已经配置了mapper一运行可还是会报找不到
怎么处理呢?(这是由于maven的约定大于配置 有可能会出现资源没有被导出或生效的问题)
<build> <resources> <resource> <directory>src/main/resources</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> <resource> <directory>src/main/java</directory> <includes> <include>**/*.properties</include> <include>**/*.xml</include> </includes> <filtering>true</filtering> </resource> </resources> </build>
将这行代码加入pom.xml文件下
在运行就可发现运行成功了(记住要重启idea)