mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
4.2.0
This commit is contained in:
@@ -39,6 +39,7 @@ public class GatewayController {
|
||||
ApiException exception = ErrorEnum.ISV_INVALID_METHOD.getErrorMeta().getException();
|
||||
ResultExecutor<ServerWebExchange, String> resultExecutor = ApiContext.getApiConfig().getGatewayResultExecutor();
|
||||
String gatewayResult = resultExecutor.buildErrorResult(exchange, exception);
|
||||
exchange.getResponse().getHeaders().add(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE);
|
||||
return Mono.just(gatewayResult);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user