old mode 100644
new mode 100755
| | |
| | | package com.java110.utils.constant; |
| | | |
| | | import org.springframework.http.HttpMethod; |
| | | |
| | | /** |
| | | * 公共常量定义 |
| | | * Created by wuxw on 2016/12/28. |
| | |
| | | */ |
| | | public final static String CACHE_DATABUS = "DATABUS"; |
| | | |
| | | /** |
| | | * 映射 databus |
| | | */ |
| | | public final static String CACHE_BUSINESS_TABLE_HIS = "BUSINESS_TABLE_HIS"; |
| | | |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | |
| | | |
| | | 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; |
| | | } |
| | | } |
| | | } |