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)
 

相关文章:

  • 2021-10-01
  • 2021-12-11
  • 2022-01-17
  • 2021-06-06
  • 2021-11-05
  • 2022-12-23
  • 2022-01-13
  • 2022-12-23
猜你喜欢
  • 2021-10-19
  • 2021-04-10
  • 2021-06-03
  • 2022-01-08
  • 2021-12-26
  • 2022-12-23
  • 2021-12-24
相关资源
相似解决方案