Spring AOP 开发中遇到问题:Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.xxx.collector.service.impl.XxxServiceImpl [Xlint:invalidAbsoluteTypeName]

在网上找了很多,都不是我想要的,后来发现是我在springaop注解的时候 写错了类名导致的这个问题

1 @Pointcut("execution(* com.xxx.collector.service.impl.XxxServiceImpl.add(..))")
2 public void pointcutExpression() {
3 
4 }

如上所示的部分写错了导致的

第一次用aop....

希望可以帮到跟我一样的第一次使用aop出现这种错误的人

posted @ 2016-06-30 09:59  Draenei  阅读(9728)  评论(0编辑  收藏  举报