
com.cloud.lego.web.spring.boot.autoconfigure.constants.OrderConstants Maven / Gradle / Ivy
package com.cloud.lego.web.spring.boot.autoconfigure.constants;
/**
* 定义相关组件拦截顺序,值越小,拦截顺序越靠前
*
* @author Andy
*/
public interface OrderConstants {
/**
* 拦截器拦截顺序
*/
interface Interceptor {
/**
* web 日志顺序-0
*/
int WEB_REQUEST_LOG = 0;
/**
* web api version-1
*/
int WEB_API_VERSION = 1;
/**
* web api header-2
*/
int WEB_REQUEST_HEADER = 2;
}
/**
* 拦截器拦截顺序
*/
interface Filter {
/**
* web filter 请求时间放入当前线程-10
*/
int WEB_REQUEST_HOLDER = 10;
/**
* web filter 参数支持application/json 转 form表单请求-11
*/
int WEB_APPLICATION_JSON = 11;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy