项目启动Error creating bean with name 'org.springframework.

J2EE 码拜 8年前 (2016-06-02) 5339次浏览
 Error creating bean with name “org.springframework.transaction.annotation.AnnotationTransactionAttributeSource#0”: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name “org.springframework.cache.config.internalCacheAdvisor”: Cannot resolve reference to bean “org.springframework.cache.annotation.AnnotationCacheOperationSource#0” while setting bean property “cacheOperationSource”; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name “org.springframework.cache.annotation.AnnotationCacheOperationSource#0”: 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”: Cannot create inner bean “(inner bean)” of type [org.springframework.aop.aspectj.AspectJExpressionPointcut] while setting bean property “pointcut”; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name “(inner bean)”: Instantiation of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/util/TypeSafeEnum
用的是maven,包应该都下下来了,已启动就这样了
什么情况啊?急死了
解决方案

40

假如你的工程里确实有这个jar,并且也确实有这个类。那就整个清理一遍吧,例如maven的local repository里找到那个jar对应的目录,删掉重新下,tomcat的缓存清一下,还有把你的web工程也先从tomcat里remove掉,然后把全部工程都重新clean and install一遍,再放到tomcat里去。

CodeBye 版权所有丨如未注明 , 均为原创丨本网站采用BY-NC-SA协议进行授权 , 转载请注明项目启动Error creating bean with name 'org.springframework.
喜欢 (0)
[1034331897@qq.com]
分享 (0)