File tree 1 file changed +4
-1
lines changed
spring-web/src/main/java/org/springframework/web/client
1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -444,6 +444,7 @@ public RestClient.Builder apply(Consumer<RestClient.Builder> builderConsumer) {
444
444
private List <HttpMessageConverter <?>> initMessageConverters () {
445
445
if (this .messageConverters == null ) {
446
446
this .messageConverters = new ArrayList <>();
447
+
447
448
this .messageConverters .add (new ByteArrayHttpMessageConverter ());
448
449
this .messageConverters .add (new StringHttpMessageConverter ());
449
450
this .messageConverters .add (new ResourceHttpMessageConverter (false ));
@@ -477,19 +478,21 @@ else if (gsonPresent) {
477
478
else if (jsonbPresent ) {
478
479
this .messageConverters .add (new JsonbHttpMessageConverter ());
479
480
}
481
+
480
482
if (jackson2SmilePresent ) {
481
483
this .messageConverters .add (new MappingJackson2SmileHttpMessageConverter ());
482
484
}
485
+
483
486
if (jackson2CborPresent ) {
484
487
this .messageConverters .add (new MappingJackson2CborHttpMessageConverter ());
485
488
}
486
489
else if (kotlinSerializationCborPresent ) {
487
490
this .messageConverters .add (new KotlinSerializationCborHttpMessageConverter ());
488
491
}
492
+
489
493
if (jackson2YamlPresent ) {
490
494
this .messageConverters .add (new MappingJackson2YamlHttpMessageConverter ());
491
495
}
492
-
493
496
}
494
497
return this .messageConverters ;
495
498
}
You can’t perform that action at this time.
0 commit comments