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

@@ -6,7 +6,7 @@
<parent>
<groupId>com.tiesheng.springboot-parent</groupId>
<artifactId>springboot-parent</artifactId>
<version>2.0.32</version>
<version>2.0.33</version>
</parent>
<artifactId>springboot-web</artifactId>

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