Skip to content

Commit

Permalink
3.5.0
Browse files Browse the repository at this point in the history
- 增加多种JsonHttpMessageConverter的支持
  • Loading branch information
feiniaojin committed Feb 19, 2024
1 parent 343d2ef commit c793564
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ public boolean supports(MethodParameter methodParameter,
//method为空、返回值为void、非JSON,直接跳过
if (Objects.isNull(method)
|| method.getReturnType().equals(Void.TYPE)
|| method.getReturnType().equals(Response.class)
|| !isJsonHttpMessageConverter(clazz)) {
logger.debug("Graceful Response:method为空、返回值为void、非JSON,跳过");
logger.debug("Graceful Response:method为空、返回值为void和Response类型、非JSON,跳过");
return false;
}

Expand Down

0 comments on commit c793564

Please sign in to comment.