From 21e843305f14eefa26fb6bec78be214e6c28a487 Mon Sep 17 00:00:00 2001 From: Shuhei Nakano Date: Wed, 14 Feb 2024 20:46:03 +0900 Subject: [PATCH] Fix Kotlin syntax errors in RestClient builder example --- .../modules/ROOT/pages/integration/rest-clients.adoc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc index 9bfd15450bcc..2c268bce2afa 100644 --- a/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc +++ b/framework-docs/modules/ROOT/pages/integration/rest-clients.adoc @@ -51,9 +51,9 @@ val defaultClient = RestClient.create() val customClient = RestClient.builder() .requestFactory(HttpComponentsClientHttpRequestFactory()) - .messageConverters(converters -> converters.add(MyCustomMessageConverter())) + .messageConverters { converters -> converters.add(MyCustomMessageConverter()) } .baseUrl("https://example.com") - .defaultUriVariables(Map.of("variable", "foo")) + .defaultUriVariables(mapOf("variable" to "foo")) .defaultHeader("My-Header", "Foo") .requestInterceptor(myCustomInterceptor) .requestInitializer(myCustomInitializer)