|
@@ -35,7 +35,7 @@ public class GlobalBodyAdvice implements ResponseBodyAdvice<Object> {
|
|
log.debug("beforeBodyWrite ......");
|
|
log.debug("beforeBodyWrite ......");
|
|
Object res = null;
|
|
Object res = null;
|
|
// 按需使用,如果有改动,务必兼容之前代码
|
|
// 按需使用,如果有改动,务必兼容之前代码
|
|
- if(returnValue instanceof Serializable){
|
|
|
|
|
|
+ if(returnValue == null || returnValue instanceof Serializable){
|
|
return returnValue;
|
|
return returnValue;
|
|
}
|
|
}
|
|
if (returnValue instanceof BaseResult || returnValue instanceof PaginationResult) {
|
|
if (returnValue instanceof BaseResult || returnValue instanceof PaginationResult) {
|