SSM开发过程Bug集锦
Posted chenglaoshi
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了SSM开发过程Bug集锦相关的知识,希望对你有一定的参考价值。
问题描述:
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的版本号需要更高的与之匹配。
以上是关于SSM开发过程Bug集锦的主要内容,如果未能解决你的问题,请参考以下文章