Java 编织期间的aspect starange异常

Java 编织期间的aspect starange异常,java,spring,aspectj,Java,Spring,Aspectj,我尝试使用方面来实现可重复的操作 我有以下方面的配置: @Aspect @Component public class TestInterceptor { @Around("execution(public Map<Object, Object> controller.class.ContollerName+.*(..)) && this(self)") public Object configureCommonResponse(Proceeding

我尝试使用方面来实现可重复的操作

我有以下方面的配置:

@Aspect
@Component
public class TestInterceptor {

    @Around("execution(public Map<Object, Object> controller.class.ContollerName+.*(..)) && this(self)")
    public Object configureCommonResponse(ProceedingJoinPoint pjp, ControllerName self) throws Throwable {
        return pjp.proceed();
    }
}

为什么它试图为
ClassName
class创建子类?我明确要求截取
controller.class.ContollerName
和子类中的执行,不是吗?

如果我代替你,我会查看
ControllerName
的编译类文件,也许这会提示发生了什么。@Ralph,我会在那里看到什么?这是一个普通的类,没有编译时编织。哦,我的错误,我希望您使用编译时编织,不确定这是否仍然相关,或者您是否仍然关心,但是在切入点定义中,您引用了“ContollerName”,而类名为“ControllerName”。你缺了一个“r”。
@Controller
public class ControllerName {

@RequestMapping("/test")
public Map<Object, Object> test() {
....
}
}
SEVERE: Servlet.service() for servlet [springServlet] in context with path [/test] threw exception [Request processing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerName': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private java.lang.Integer controller.pageSize; nested exception is org.springframework.beans.factory.BeanExpressionException: Expression parsing failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'className' defined in URL [jar:file:/pathToJar.jar!/className/ClassName.class]: Initialization of bean failed; nested exception is org.springframework.aop.framework.AopConfigException: Could not generate CGLIB subclass of class [class className.ClassName]: Common causes of this problem include using a final class or a non-visible class; nested exception is java.lang.IllegalArgumentException: Superclass has no null constructors but no arguments were given] with root cause