synchronized public static void allowPatch() {
		if (isAllowPatch) {
			return;
		}
		final Field methodsField = ReflectUtil.getField(HttpURLConnection.class, "methods");
		if (null == methodsField) {
			throw new HttpException("None static field [methods] with Java version: [{}]", System.getProperty("java.version"));
		}

		// 去除final修饰
		ReflectUtil.removeFinalModify(methodsField);
		final String[] methods = {
			"GET", "POST", "HEAD", "OPTIONS", "PUT", "DELETE", "TRACE", "PATCH"
		};
		ReflectUtil.setFieldValue(null, methodsField, methods);

		// 检查注入是否成功
		final Object staticFieldValue = ReflectUtil.getStaticFieldValue(methodsField);
		if (false == ArrayUtil.equals(methods, staticFieldValue)) {
			throw new HttpException("Inject value to field [methods] failed!");
		}

		isAllowPatch = true;
	}
@Test
	public void allowPatchTest() {
		HttpGlobalConfig.allowPatch();
	}