• 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)
     
  • 相关阅读:
    cmd查看端口号是否占用
    重新安装安全狗以后,apchpe 启动不了。
    springcloud组件-eureka
    关于mybatis和spring整合后的一级缓存
    SpringCloud理解篇
    mycat的读写分离
    mycat的分库分表
    Linux下mysql服务器配置
    mycat理解
    linux配置mysql
  • 原文地址:https://www.cnblogs.com/sshoub/p/4152517.html
Copyright © 2020-2023  润新知