完整的pom.xml文件 123456789101112131415161718<build> <plugins> <plugin> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-maven-plugin</artifactId> <configuration> <mainClass>com.wzz.ExamAdminApplication</mainClass> </configuration> <executions> <execution> <goals> <goal>repackage</goal> </goals> </execution> </executions> </plugin> </plugins></build> 可以添加配置跳过test报错 1<testFailureIgnore>true</testFailureIgnore>