zoukankan      html  css  js  c++  java
  • SSM开发过程Bug集锦

    问题描述:

    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to read candidate component class: file [D: ts9StudyWorkSpaceTeduStore argetclassescn edustoremapperUserMapper.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: ts9StudyWorkSpaceTeduStore argetclassescn edustoremapperUserMapper.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的版本号需要更高的与之匹配。

  • 相关阅读:
    783. Minimum Distance Between BST Nodes
    290. Word Pattern
    155. Min Stack
    HDU 6069 Counting Divisors (素数+筛法)
    BZOJ 2038 小Z的袜子(hose) (莫队算法)
    HDU 6127 Hard challenge (极角扫描)
    HDU 6096 String (AC自动机)
    LightOJ 1268 Unlucky Strings (KMP+矩阵快速幂)
    CodeForces 219D Choosing Capital for Treeland (树形DP)
    ZOJ 3201 Tree of Tree (树形DP)
  • 原文地址:https://www.cnblogs.com/chenglaoshi/p/11626021.html
Copyright © 2011-2022 走看看