[Java][webclient] Fix deprecation warning: BodyInserters.fromObject (#8963)

* Fix deprecation warning: BodyInserters.fromObject

See for more information #8553

* [Java][webclient] Upgrade to spring 5.2.13
This commit is contained in:
Backfighter
2021-03-13 17:12:48 +01:00
committed by GitHub
parent 4e2ece4b51
commit ad603f44fb
6 changed files with 6 additions and 6 deletions

View File

@@ -502,7 +502,7 @@ public class ApiClient extends JavaTimeFormatter {
} else if(MediaType.MULTIPART_FORM_DATA.equals(contentType)) {
return BodyInserters.fromMultipartData(formParams);
} else {
return obj != null ? BodyInserters.fromObject(obj) : null;
return obj != null ? BodyInserters.fromValue(obj) : null;
}
}