import java.util.UUID;
/** *url :接口地址 * jsonObj : json字符串 **/ public static String doPost(String url, String jsonObj) throws Exception { HttpHeaders headers = new HttpHeaders(); // 设置请求参数类型为 application/json; charset=UTF-8 HttpEntity<String> formEntity = new HttpEntity<String>(jsonObj.toString(), headers); } |