卧槽!zuul的路由相关的接口filter层级居然是写死在代码中的

/**
 * Filter Order for {@link DebugFilter#filterOrder()}
 */
public static final int DEBUG_FILTER_ORDER = 1;

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.pre.FormBodyWrapperFilter#filterOrder()}
 */
public static final int FORM_BODY_WRAPPER_FILTER_ORDER = -1;

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.pre.PreDecorationFilter}
 */
public static final int PRE_DECORATION_FILTER_ORDER = 5; // 路由定位相关接口

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.route.RibbonRoutingFilter#filterOrder()}
 */
public static final int RIBBON_ROUTING_FILTER_ORDER = 10;

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.post.SendErrorFilter#filterOrder()}
 */
public static final int SEND_ERROR_FILTER_ORDER = 0;

/**
 * Filter Order for {@link SendForwardFilter#filterOrder()}
 */
public static final int SEND_FORWARD_FILTER_ORDER = 500;

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.post.SendResponseFilter#filterOrder()}
 */
public static final int SEND_RESPONSE_FILTER_ORDER = 1000;

/**
 * Filter Order for {@link org.springframework.cloud.netflix.zuul.filters.route.SimpleHostRoutingFilter#filterOrder()}
 */
public static final int SIMPLE_HOST_ROUTING_FILTER_ORDER = 100;

/**
 * filter order for {@link Servlet30WrapperFilter#filterOrder()}
 */
public static final int SERVLET_30_WRAPPER_FILTER_ORDER = -2;

/**
 * filter order for {@link org.springframework.cloud.netflix.zuul.filters.pre.ServletDetectionFilter#filterOrder()}
 */
public static final int SERVLET_DETECTION_FILTER_ORDER = -3;
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值