@Configuration
public class ApiGatewayResultConfiguration
extends java.lang.Object
Overrides the default {"code":xxx, "message":"..."} response format
with api-gateway standard {"respCode":"xxxx", "respDesc":"..."}.
Code mapping rules:
This bean takes precedence over DefaultShenyuResult because
ShenyuExtConfiguration registers its default bean with
@ConditionalOnMissingBean.
| 构造器和说明 |
|---|
ApiGatewayResultConfiguration() |
| 限定符和类型 | 方法和说明 |
|---|---|
org.apache.shenyu.plugin.api.result.ShenyuResult<ApiGatewayResultEntity> |
shenyuResult()
Custom shenyu result bean.
|
@Bean public org.apache.shenyu.plugin.api.result.ShenyuResult<ApiGatewayResultEntity> shenyuResult()
Copyright © 2026 The Apache Software Foundation. All rights reserved.