参数如果这样写肯定会报400错误了
HttpEntity<String> entity = new HttpEntity<String>("{'kind': 'spark'}",headers);
参数传递要改成这样
HttpEntity<String> entity = new HttpEntity<String>("{\"kind\": \"spark\"}",headers);
等我回头写个全的~~~~~~~~~~~
- 获取session
- 提交code
- 读取结果
参数如果这样写肯定会报400错误了
HttpEntity<String> entity = new HttpEntity<String>("{'kind': 'spark'}",headers);
参数传递要改成这样
HttpEntity<String> entity = new HttpEntity<String>("{\"kind\": \"spark\"}",headers);
等我回头写个全的~~~~~~~~~~~