publish 2.0.33
All checks were successful
/ local-deploy (push) Successful in 1m33s

This commit is contained in:
曾文豪
2025-11-19 15:08:29 +08:00
parent cce180806b
commit 57f0e2ab82
12 changed files with 22 additions and 21 deletions

View File

@@ -27,7 +27,8 @@ public class EncryptResponseBodyAdvice implements ResponseBodyAdvice<ApiResp> {
@Override
public boolean supports(MethodParameter returnType, Class<? extends HttpMessageConverter<?>> converterType) {
return AnnotationUtil.getAnnotation(returnType.getContainingClass(), RestController.class) != null;
return AnnotationUtil.getAnnotation(returnType.getContainingClass(), RestController.class) != null
&& returnType.getParameterType() == ApiResp.class;
}
@Override