1、报错信息:Error running 'GenerateApplicationTest.contextLoads'Failed to resolve org.junit.platform:junit-platform-launcher:1.8.2
2、解决办法:
往pom文件加入以下依赖
<dependency>
<groupId>org.junit.platform</groupId>
<artifactId>junit-platform-launcher</artifactId>
<scope>test</scope>
</dependency>