java110
2021-10-13 ba1c0ad6cffaa8a6288a4e66d0598d16f1cccc10
java110-utils/src/main/java/com/java110/utils/constant/CommonConstant.java
@@ -1,5 +1,7 @@
package com.java110.utils.constant;
import org.springframework.http.HttpMethod;
/**
 * 公共常量定义
 * Created by wuxw on 2016/12/28.
@@ -126,6 +128,11 @@
     */
    public final static String CACHE_DATABUS = "DATABUS";
    /**
     * 映射 databus
     */
    public final static String CACHE_BUSINESS_TABLE_HIS = "BUSINESS_TABLE_HIS";
    /**
@@ -205,4 +212,17 @@
    public static String getHttpMethodStr(HttpMethod httpMethod) {
        if (HttpMethod.GET == httpMethod) {
            return HTTP_METHOD_GET;
        } else if (HttpMethod.POST == httpMethod) {
            return HTTP_METHOD_POST;
        } else if (HttpMethod.PUT == httpMethod) {
            return HTTP_METHOD_PUT;
        } else if (HttpMethod.DELETE == httpMethod) {
            return HTTP_METHOD_DELETE;
        } else {
            return HTTP_METHOD_POST;
        }
    }
}