zoukankan      html  css  js  c++  java
  • Spring框架搭建遇到的问题汇总

    1、The resource is not on the build path of a Java project

      然后把相应的依赖加入构建路径

    2、Type mismatch: cannot convert from Class<SpringJUnit4ClassRunner> to Class<? extends Runner>

      版本过低,spring不支持junit4.5以下的。

    3、No grammar constraints (DTD or XML schema) detected for the document
      警告,没关系
    4、java.lang.IllegalStateException: Failed to load ApplicationContext
              ested exception is org.xml.sax.SAXParseException: cvc-elt.1: Cannot find the declaration of element 'beans'
     
              http://www.springframework.org/schema/context/spring-context-3.0.xsd
              schema写成了scheme
    5、java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
         因为缺少aopaliance.jar包
    6、java.lang.ClassNotFoundException: org.aspectj.weaver.BCException
         aspectjweaver.jar
    7、org.springframework.aop.framework.AopConfigException: Cannot proxy target class because CGLIB2 is not available. Add CGLIB to the class path or specify proxy interfaces.
              缺少jar包 cglib-2.1.3.jar 导入cglib-nodep-2.1_3.jar包,或者导入asm-2.2.3.jar和cglib-2.2.jar 
     
     
    缺少的包下载:下载
    (junit-4.5.jar,cglib-nodep-2.1_3.jar,aopalliance.jar,aspectjweaver.jar)
     
  • 相关阅读:
    Problem S: 分数类的模板数组类
    Problem E: 向量的运算
    Problem D: 强悍的矩阵运算来了
    Problem C: Person类与Student类的关系
    Problem B: 还会用继承吗?
    Problem A: 求个最大值
    Problem B: 数组类(II)
    树的直径题集
    LCA题集
    线段树总结
  • 原文地址:https://www.cnblogs.com/sshoub/p/4152517.html
Copyright © 2011-2022 走看看