nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean wit
Posted 闲言_
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean wit相关的知识,希望对你有一定的参考价值。
错误产生环境
spring 项目使用 aop 时 产生
错误描述
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0':
Caused by: java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
错误原因
- 使用aop 需要导入 aspectjaweaver.jar 包
- 因为我没有导 aspectjaweaver.jar 导出错误
解决办法
- 导入 aspectjaweaver.jar 依赖即可
<dependency>
<groupId>org.aspectj</groupId>
<artifactId>aspectjweaver</artifactId>
<version>1.9.4</version>
</dependency>
以上是关于nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean wit的主要内容,如果未能解决你的问题,请参考以下文章
nested exception is com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link fai
nested exception is io.lettuce.core.RedisCommandTimeoutException
nested exception is io.lettuce.core.RedisCommandTimeoutException
nested exception is org.apache.ibatis.reflection.ReflectionExceptio
Constructor threw exception; nested exception is java.lang.NoClassDefFoundError: com/fasterxml/jacks
HTTP Status 500 - Request processing failed; nested exception is org.hibernate.exception.GenericJDBC