Java 服务器 用户体系集成 出现问题 急求解决!!!!!!
获取管理员token的时候:public static String getToken(){
Map Params = new HashMap();
Params.put("grant_type", "client_credentials");
Params.put("client_id", CLIENT_ID);
Params.put("client_secret", CLIENT_SECRET);
String result = Utils.post(BASE_URL + ORG_NAME + "/" + APP_NAME, Params);
System.err.println("result----------" + result);
return result;
}
这样返回的是json的一大堆信息 但不是Response 示例的信息
但是 post后面加上token的话 直接报500错误,"error":"eof","timestamp":1476172854648,"duration":0,"exception":"java.io.EOFException","error_description":"No content to map to Object due to end of input"}"
Map
Params.put("grant_type", "client_credentials");
Params.put("client_id", CLIENT_ID);
Params.put("client_secret", CLIENT_SECRET);
String result = Utils.post(BASE_URL + ORG_NAME + "/" + APP_NAME, Params);
System.err.println("result----------" + result);
return result;
}
这样返回的是json的一大堆信息 但不是Response 示例的信息
但是 post后面加上token的话 直接报500错误,"error":"eof","timestamp":1476172854648,"duration":0,"exception":"java.io.EOFException","error_description":"No content to map to Object due to end of input"}"
没有找到相关结果
已邀请:
1 个回复
lizg - ……