作者回复: AspectJ 主要被 Spring 用于解析其 Pointcut 表达式,后面的章节会详细讨论,代理对象还是由JDK动态代理或者是Cglib来实现
3
黑山老妖
2021-03-19
代理对象还是由JDK动态代理或者是Cglib来实现。AspectJ 主要被 Spring 用于解析其 Pointcut 表达式
作者回复: 是的~
1
Tommy
2021-12-01
奇了怪了,我这边怎么就报错了
Exception in thread "main" java.lang.IllegalStateException: Unresolvable target class
at org.springframework.util.Assert.state(Assert.java:73)
at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAdvisorsFromAspectInstanceFactory(AspectJProxyFactory.java:123)
at org.springframework.aop.aspectj.annotation.AspectJProxyFactory.addAspect(AspectJProxyFactory.java:111)
at com.zt.aop.features.AspectJAnnotationUsingAPIDemo.main(AspectJAnnotationUsingAPIDemo.java:28)