码迷,mamicode.com
首页 > 其他好文 > 详细

SSM开发过程Bug集锦

时间:2019-10-06 00:04:54      阅读:98      评论:0      收藏:0      [点我收藏+]

标签: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的版本号需要更高的与之匹配。

SSM开发过程Bug集锦

标签:target   mvc   tar   版本号   需要   支持   exce   user   context   

原文地址:https://www.cnblogs.com/chenglaoshi/p/11626021.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!