We have two custom annotations, @MerchantActivity and @Authorised. We want to execute the aspect of the @Authorised first and then the second one. But our system is automatically executing the aspect of @MerchantActivity first. How can we define execution sequence by ourselves?
@PostMapping("/{merchantId}/stores")
@Authorised
@MerchantActivity(title = "add-store")
public ResponseEntity<?> addStore(@PathVariable("merchantId") String merchantId, @Valid @RequestBody StoreB store)
{
List<StoreB> res = merchantService.addStore(merchantId, store);
return ApiResponse.ok(res);
}