Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUnit5IdeaTestRunner : Unsupported major.minor version 52.0
Exception in thread "main" java.lang.UnsupportedClassVersionError: com/intellij/junit5/JUnit5IdeaTestRunner : Unsupported major.minor version 52.0
@Test
导致这个错误的原因是:引入的包总是JUNIT5.而jdk环境是1.7.配置
修改:在我的项目的External Libraries里面去掉maven:junit5
首先
随便选一个open
点—
然后ok