问答详情
源自:5-4 Advice应用(上)

Error creating bean with name 'moocAspect' defined in class path resource ,这个是什么情况?

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'moocAspect' defined in class path resource [spring-aop-schema-advice.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create inner bean '(inner bean)#1caabe71' of type [org.springframework.aop.aspectj.AspectJMethodBeforeAdvice] while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name '(inner bean)#1caabe71': Cannot resolve reference to bean 'moocPointcut' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'moocPointcut' is defined

提问者:涅槃ing 2016-02-07 00:30

个回答

  • Owl_Tam
    2016-02-15 17:17:46
    已采纳

    get。set方法写了没

  • Monster_Z
    2016-07-09 09:43:56

    这老师讲课依赖aspectjweaver包也不讲一声