严重: Context initialization failed
org.springframework.beans.factory.parsing.BeanDefinitionParsingException:
Configuration problem: Failed to import bean definitions from relative location [dataSourceConfig.xml]
Offending resource: ServletContext resource [/WEB-INF/config/beans-base-config.xml]; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException:
Unexpected exception parsing XML document from ServletContext resource [/WEB-INF/config/dataSourceConfig.xml]; nested exception is java.lang.NoClassDefFoundError: org/aspectj/weaver/reflect/ReflectionWorld$ReflectionWorldException
Caused by: java.lang.ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException
问题原因:缺少aspectjweaver.jar
解决方法:添加aspectjweaver.jar
本文介绍了一个关于Spring框架中配置AspectJ时出现的错误,主要原因是缺少aspectjweaver.jar文件导致的NoClassDefFoundError异常。文章提供了具体的异常堆栈信息,并给出了解决方案——添加缺失的aspectjweaver.jar依赖。

被折叠的 条评论
为什么被折叠?



