Java Eclipse在使用SpringAOP时发出错误警告

Java Eclipse在使用SpringAOP时发出错误警告,java,eclipse,spring-boot,spring-aop,spring-tool-suite,Java,Eclipse,Spring Boot,Spring Aop,Spring Tool Suite,我正在使用EclipseST3.6.4(基于EclipseLuna4.4.2),我正在使用SpringBoot和SpringAOP构建一个应用程序 我的代码如下所示: @Pointcut("execution(* test.Service.handle(..))") public void serviceOperation() { } @Pointcut("serviceOperation() && args(snapshot)") public void snapshotSe

我正在使用EclipseST3.6.4(基于EclipseLuna4.4.2),我正在使用SpringBoot和SpringAOP构建一个应用程序

我的代码如下所示:

@Pointcut("execution(* test.Service.handle(..))")
public void serviceOperation() {
}

@Pointcut("serviceOperation() && args(snapshot)")
public void snapshotServiceOperation(Snapshot snapshot) {
}

@AfterReturning("snapshotServiceOperation(snapshot)")
public synchronized void logExecution(Snapshot snapshot) {
    logger.info("Look, it's a {}", snapshot);
}
这工作正常,但Eclipse报告了以下错误:

Spring AOP Problem (2 items):
 - Exception from reflection '8810'
 - Pointcut is malformed: warning no match for this type name: snapshot [Xlint:invalidAbsoluteTypeName]

这很烦人,因为程序工作正常,但每次我运行它时,Eclipse都会突出显示错误并询问“您确定要运行有错误的程序吗?”您的切入点表达式正确吗?你能贴上你的标签吗,plz?@BurakKeceli没有其他东西,我没有使用XML配置文件。切入点表达式都在上面。我有同样的问题,你找到原因了吗?目前,我刚刚讨论了错误:)您的切入点表达式正确吗?你能贴上你的标签吗,plz?@BurakKeceli没有其他东西,我没有使用XML配置文件。切入点表达式都在上面。我有同样的问题,你找到原因了吗?目前,我刚刚谈到了错误:)