浏览代码

test code

yaobo 7 年之前
父节点
当前提交
3d0567300a
共有 1 个文件被更改,包括 5 次插入0 次删除
  1. 5 0
      src/main/java/cn/efunbox/audio/clients/UserHttp.java

+ 5 - 0
src/main/java/cn/efunbox/audio/clients/UserHttp.java

@@ -53,6 +53,11 @@ public class UserHttp {
         map.put("avatar", "");
         map.put("nickname", "");
 
+        System.out.println("header:");
+        System.out.println(requestHeaders.toString());
+        System.out.println("body:");
+        System.out.println(map.toString());
+        
         RestTemplate restTemplate = new RestTemplate();
         return restTemplate.postForEntity(urlRegister, new HttpEntity<Map>(map, requestHeaders), String.class).getBody();
     }