问题描述:
我有一个抽象类:AbstractApi,里面有一个抽象方法
public abstract String handle(RequestParam requestParam, ResponseParam responseParam)
然后所有的具体业务Api(比如支付PayApi,订单OrderApi,)都是继承AbstractApi,然后实现handle方法,
我现在是要在所有的实现AbstractApi类的handle方法都做一个切面,但是不其效果,请大神指教:
@Aspect
@Component
public class ApiCallLockAspect extends AbstractAspect {
protected final Logger LOG = LoggerFactory.getLogger(getClass());
@Around("execution(* com.app.exdata.api..*.*Api.handle(com.app.RequestParam,com.app.ResponseParam))")
public Object aroundAdvice(ProceedingJoinPoint point) throws Exception {
}