spring中加入aop库出错

报错信息如下: 

Error creating bean with name 'org.springframework.aop.config.internalAutoProxyCreator': Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [org.springframework.aop.aspectj.annotation.AnnotationAwareAspectJAutoProxyCreator]: Constructor threw exception; nested exception is java.lang.NoClassDefFoundError

 

解决方法:

在MyEclipse中,在项目上右击build path—>configure build path..—>add library..—>MyEclipse Libraries选中Spring2.0 AOP Library

posted @ 2012-02-27 16:03  vigarbuaa  阅读(602)  评论(0编辑  收藏  举报