spring boot maven打包时报错
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.029 sec <<< FAILURE! - in com.example.demo.TmsTransApaApplicationTests
initializationError(com.example.demo.TmsTransApaApplicationTests) Time elapsed: 0.002 sec <<< ERROR!
。。。。。。。
。。。。。。。
Results :
Tests in error:
TmsTransApaApplicationTests.initializationError ? IllegalState Unable to find ...
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0
解决办法:pom增加配置
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
问题解决