@At
@Ok("void")
@POST
@Api(name = "腾讯云IM状态回调", description = "腾讯云IM状态回调")
public Object imCallback(HttpServletRequest request,
HttpServletResponse response) throws Exception {
request.setCharacterEncoding("utf-8");
BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(request.getInputStream(),"utf-8"));
String content = Streams.read(bufferedReader).toString();
JSONObject param =JSONUtil.parseObj(content);
System.out.println("qqqqqqqqqqqqqq:"+content);
JSONObject result = new JSONObject();
result.put("ActionStatus", "OK");
result.put("ErrorInfo", "");
result.put("ErrorCode", "0");
return result.toString();
}
报错
[WARN ] 2020-07-23 16:52:45.803 com.ilanchuang.suoi.app.FailProcessor.process(FailProcessor.java:28) - Error@/serv/doctorAccount/imCallback :
java.lang.IllegalStateException: getReader() has already been called for this request
at org.apache.catalina.connector.Request.getInputStream(Request.java:1114)
at org.apache.catalina.connector.RequestFacade.getInputStream(RequestFacade.java:366)
at javax.servlet.ServletRequestWrapper.getInputStream(ServletRequestWrapper.java:133)
at com.ilanchuang.suoi.app.controller.syserver.inquiry.ServInquiryDoctorAccountController.imCallback(ServInquiryDoctorAccountController.java:67)
已经加了@Ok("void") 那里问题?