异常求解:小弟学spring时出现异常,跪求好心人帮忙看看
小弟在学spring注解的时候出现了以下错误,解决不了了,跪求好心人帮忙看看,异常显示,测试文件第14行有错误,第14行就是下面这句话
ApplicationContext applicationContext=new ClassPathXmlApplicationContext("spring-an.xml");
xml文件:
类文件:
测试文件:
出现的异常报告:
Exception in thread "main" org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [C:\java_IDEA\program\spring_test\target\classes\com\southwind\entity\Car.class]; nested exception is org.springframework.core.NestedIOException: ASM ClassReader failed to parse class file - probably due to a new Java class file version that isn't supported yet: file [C:\java_IDEA\program\spring_test\target\classes\com\southwind\entity\Car.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 60
我的spring版本是5.2.3,JDK版本是8
拜托各位好心人了!