异步请求设置返回值为空

This commit is contained in:
yangqicheng 2024-10-28 14:43:00 +08:00
parent 2e289303a5
commit d6a5513c47

View File

@ -244,8 +244,8 @@ public class ComplexInvokeClient implements Client {
// at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
// at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:753)
// 只设置为字符串会报错恢复为设置成CommonResponse
final ByteArrayInputStream inputStream = new ByteArrayInputStream(JSON.toJSONString(CommonResponse.success(HttpStatus.OK.value(), "Send MQ Success", null))
.getBytes(UTF_8));
final ByteArrayInputStream inputStream = new ByteArrayInputStream(JSON.toJSONString(CommonResponse.success(HttpStatus.OK.value(), null, null))
.getBytes(UTF_8));
@Override
public Integer length() {