Commit 53e7b0f0 authored by dingzhiwei's avatar dingzhiwei
Browse files

修改返回String类型的处理

parent 2545132b
...@@ -50,6 +50,11 @@ public class ApiResBodyAdviceKit { ...@@ -50,6 +50,11 @@ public class ApiResBodyAdviceKit {
return ((OriginalRes) body).getData(); return ((OriginalRes) body).getData();
} }
// 返回String 避免 StringHttpMessageConverter
if(body instanceof String){
return body;
}
//返回文件流不处理 //返回文件流不处理
if(body instanceof InputStreamResource){ if(body instanceof InputStreamResource){
return body; return body;
......
Supports Markdown
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