@Aspect 的异常,求助

宅男小何 2011-12-09 08:37:03

@Service(value="testAfterLoggerAdvice")
public class TestAfterLoggerAdvice{

public void after(JoinPoint point) {
System.out.println("methodName="+point.getSignature().getName());
System.out.println("target="+point.getTarget().getClass().getName());
}

}
<aop:config>
<aop:aspect ref="testAfterLoggerAdvice" order="0" id="testAfterLoggerAspect">
<aop:pointcut expression="execution(* test.service.impl.testServiceImpl.*(..))" id="testServicePointcut"/>
<aop:after method="after" pointcut-ref="testServicePointcut"/>
</aop:aspect>
</aop:config>


...全文
183 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
宅男小何 2011-12-09
  • 打赏
  • 举报
回复

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'authAdivice' defined in class path resource [conf/application-context-aop.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationDao' defined in class path resource [conf/application-context-dao.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbConnectionAdvisor' defined in class path resource [conf/application-context-aop.xml]: Cannot resolve reference to bean 'dbConnectionAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dbConnectionAdvice' defined in class path resource [conf/application-context-aop.xml]: Cannot resolve reference to bean 'circleConfig' while setting bean property 'circleConfig'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'circleConfig' defined in class path resource [conf/application-context-service.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'circleKeyWordBeforeAdvisor' defined in class path resource [conf/application-context-aop.xml]: Cannot resolve reference to bean 'circleKeyWordBeforeAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'circleKeyWordBeforeAdvice' defined in class path resource [conf/application-context-keyword.xml]: Cannot resolve reference to bean 'circleKeyWordFilterService' while setting bean property 'keyWordFilterService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'circleKeyWordFilterService' defined in class path resource [conf/application-context-circle-keyword.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcachedTransactionAdvisor' defined in class path resource [conf/application-context-aop.xml]: Cannot resolve reference to bean 'memcachedTransactionAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcachedTransactionAdvice' defined in class path resource [conf/application-context-aop.xml]: Cannot resolve reference to bean 'memcacheTransactionManager' while setting bean property 'memcacheTransactionManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'memcacheTransactionManager' defined in class path resource [conf/application-context-dao-framework.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'focusCacheAdvisor' defined in class path resource [conf/applicationContext-focus-aop.xml]: Cannot resolve reference to bean 'focusCacheAdvice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'focusCacheAdvice' defined in class path resource [conf/applicationContext-focus-aop.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheEventManager' defined in class path resource [conf/application-context-dao-framework.xml]: Cannot resolve reference to bean 'versionCacheManager' while setting bean property 'versionCacheManager'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'versionCacheManager' defined in class path resource [conf/application-context-dao-framework.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'forumAuthAdvisor' defined in class path resource [conf/applicationContext-focus-aop.xml]: Cannot resolve reference to bean 'forumAuthAdivice' while setting bean property 'advice'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'forumAuthAdivice' defined in class path resource [conf/applicationContext-focus-aop.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'forumBlackUserDao' defined in class path resource [conf/applicationContext-focus-dao.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: 'patterns' must not be empty
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:480)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
... 642 more

81,095

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧