错误提示:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘xxx’ defined in file [xxx]: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/reflect/ReflectionWorld$ReflectionWorldException
原因:
没有导入aspectjweaver.jar包。我曾导入aspectj-1.9.5.jar包后还是报错,在导入aspectjweaver.jar后就可以正常执行程序。