springmvc 和 mybatis 整合时因缺少jar包引起的错误

  1. 启动tomcat时会出现以下错误
    Error creating bean with name ‘dataSource’ defined in ServletContext resource [/WEB-INF/classes/spring/applicationContext-dao.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0’: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError:org/aspectj/weaver/tools/PointcutDesignatorHandlerNoClassDefFound

  2. 教你找错误
    这里写图片描述

  3. 知道缺少包的原因就去下载 aspectjweaver-1.6.8_2.jar

  4. 下载包地址:http://maven.aliyun.com/nexus/#welcome
    你需要什么jar在这里面搜一搜就有了

相关推荐
©️2020 CSDN 皮肤主题: 编程工作室 设计师:CSDN官方博客 返回首页