错误描述:
Caused by: org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\SSM\SSM_3.22\spring_transaction\target\classes\spring_txAnnotation\Controller\BookController.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 [D:\SSM\SSM_3.22\spring_transaction\target\classes\spring_txAnnotation\Controller\BookController.class]; nested exception is java.lang.IllegalArgumentException: Unsupported class file major version 62
原因中的最后一句话是很重要的,它说明了导致该错误产生的原因是由于jDK版本不匹配的问题
Unsupported class file major version 62
解决办法如下:
第一步:
第二步: