Commit 991bb53f by huangfusuper

解决结果集解析JSON的BUG

parent c196b080
......@@ -36,9 +36,9 @@ public class ResponseAdvice implements ResponseBodyAdvice<Object> {
@Override
public Object beforeBodyWrite(Object body, MethodParameter methodParameter, MediaType mediaType, Class aClass, ServerHttpRequest serverHttpRequest, ServerHttpResponse serverHttpResponse) {
if (body instanceof ResponseResult){
return JSON.toJSONString(body);
return body;
}
return JSON.toJSONString(ResponseResult.ok(body));
return ResponseResult.ok(body);
}
public static void main(String[] args) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment