SpringBoot打包错误:Please refer to xxx\target\surefire-reports for the individual test results

网上的解决方式是:

方法一:


想必是有人也没有这个闪电图标,原因是IDEA版本的问题,你可以找找

这个图标的意思是切换“跳过测试”模式,当图标背景置灰后就可以了

方法二:修改pom.xml文件

<build>
  <plugins>
<!-- maven 打包时跳过测试 -->
   <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-surefire-plugin</artifactId>
                <configuration>
                    <skip>true</skip>
                </configuration>
            </plugin>
       </plugins>
   <build>    

不出意外的话问题就解决了,成功的样子

更多推荐

SpringBoot打包错误:Please refer to xxx\target\surefire-reports for the individual