在pom.xml中配置
<build> <testResources> <testResource> <directory>${project.basedir}/src/test/resources</directory> </testResource> <testResource> <directory>${project.basedir}/src/main/resources</directory> </testResource> </testResources> </build>
在pom.xml中配置
<build> <testResources> <testResource> <directory>${project.basedir}/src/test/resources</directory> </testResource> <testResource> <directory>${project.basedir}/src/main/resources</directory> </testResource> </testResources> </build>
转载于:https://www.cnblogs.com/zipon/p/9602663.html