为了账号安全,请及时绑定邮箱和手机立即绑定

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

正在回答

2 回答

get。set方法写了没

1 回复 有任何疑惑可以回复我~
#1

藤原豆腐车

get、set放在个类里面啊,不是很清楚
2016-04-17 回复 有任何疑惑可以回复我~
#2

藤原豆腐车

已经搞定,加 <dependency> <groupId> org.aspectj</groupId > <artifactId> aspectjweaver</artifactId > <version> 1.8.7</version > </dependency>
2016-04-17 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信