标签:target mvc tar 版本号 需要 支持 exce user context
问题描述:
org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D:\tts9\StudyWorkSpace\TeduStore\target\classes\cn\tedu\store\mapper\UserMapper.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:\tts9\StudyWorkSpace\TeduStore\target\classes\cn\tedu\store\mapper\UserMapper.class]; nested exception is java.lang.IllegalArgumentException
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:290)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
..........
问题所在:
<!-- Spring WebMVC -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>3.2.8.RELEASE</version>
</dependency>
解决方法:
从问题描述中:probably due to a new Java class file version that isn‘t supported yet
得知:可能是因为新的Java类文件版本尚不受支持。
》》将spring-webmvc的版本号改为: 4.3.1 即可,因为项目的jdk为1.8的高版本,所以springmvc的版本号需要更高的与之匹配。
标签:target mvc tar 版本号 需要 支持 exce user context
原文地址:https://www.cnblogs.com/chenglaoshi/p/11626021.html