java110
2021-09-12 ed7d0de6a0e169b846a8dfafbdb9076d8c648445
java110-utils/src/main/java/com/java110/utils/constant/CommonConstant.java
old mode 100644 new mode 100755
@@ -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;
        }
    }
}