为什么高版本的spring-context不能用junit,在低版本中可以正常使用
org.junit.platform.commons.JUnitException: TestEngine with ID 'junit-jupiter' failed to discover tests
<!-- https://mvnrepository.com/artifact/org.springframework/spring-context -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>5.3.1</version>
</dependency>
在5.几的版本下就可以,而6.几的版本都不行
Caused by: java.lang.UnsupportedClassVersionError: org/springframework/context/ApplicationContext has been compiled by a more recent version of the Java Runtime (class file version 61.0), this version of the Java Runtime only recognizes class file versions up to 55.0