您的位置:首页 > 编程语言 > ASP

Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot cre

2017-02-22 19:55 531 查看
Error creating bean with name 'org.springframework.aop.aspectj.AspectJPointcutAdvisor#0': Cannot create inner bean '(inner bean)#35b652' 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)#35b652': Cannot resolve reference to bean 'Aspect' while setting constructor argument; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException:
No bean named 'Aspect' is defined的报错问题

在applicationContext.xml里面没有配置切入点   <aop:pointcut expression="execution(* com.service.*.*(..))" id="PointCut"/><!--代表com.service包下面的所有的类或接口,记住还要配置切面和通知-->

新手上路,如果有错欢迎指出。谢谢
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐