Tests in error:BlogApplicationTests.initializationError » IllegalState Unable to find a @Spri...【解决】

刚刚写完一个项目,准备打包,却发现无法打包。

然后认真排查了一下问题。发现少引入了一个插件。

			<plugin>
				<groupId>org.apache.maven.plugins</groupId>
				<artifactId>maven-surefire-plugin</artifactId>
				<configuration>
					<skip>true</skip>
				</configuration>
			</plugin>

引入这个插件就可以完美运行打包了。

原文地址:https://www.cnblogs.com/heian99/p/11972232.html