Caused by: java.lang.IllegalArgumentException: warning no match for this type name: com.xxx.collector.service.impl.XxxServiceImpl [Xlint:invalidAbsoluteTypeName]
在 @Pointcut 運算式中,類名拼寫錯誤導致 AspectJ 無法匹配到目標類:
// 錯誤示範
@Pointcut("execution(* com.xxx.collector.service.impl.XxxServiceImpl.add(..))")
public void pointcutExpression() {}
Ctrl+Shift+C 複製參考路徑)貼入切點運算式$ 分隔)invalidAbsoluteTypeName 90% 以上情況是類名寫錯。仔細核對包路徑與類名拼寫,問題即刻解決。