http模块添加expectString方法,避免返回字符串时反序列化报错

This commit is contained in:
小新
2023-09-07 14:03:50 +08:00
parent 4aefaf571c
commit 0d3e021f6c

View File

@@ -133,6 +133,12 @@ public class HttpModule {
return this;
}
@Comment("设置返回值为`String`")
public HttpModule expectString() {
this.responseType = String.class;
return this;
}
@Comment("发送`POST`请求")
public ResponseEntity<?> post() {
this.method(HttpMethod.POST);