From 423373ba06ce604faa5cd0aa5b41887a27b9cd64 Mon Sep 17 00:00:00 2001 From: jwalter Date: Thu, 18 Dec 2025 14:53:54 +0100 Subject: [PATCH 1/2] Harmonize Kotlin example for HTTP Service client support See gh-48577 Signed-off-by: jwalter --- .../boot/docs/io/restclient/httpservice/groups/EchoService.kt | 1 - 1 file changed, 1 deletion(-) diff --git a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/EchoService.kt b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/EchoService.kt index a3faa09cc84..1b5d163dea5 100644 --- a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/EchoService.kt +++ b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/EchoService.kt @@ -19,7 +19,6 @@ import org.springframework.web.bind.annotation.RequestBody import org.springframework.web.service.annotation.HttpExchange import org.springframework.web.service.annotation.PostExchange -@HttpExchange("echo") interface EchoService { @PostExchange From 3e689881f2580c635084e7023b91b64582627647 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Nicoll?= Date: Thu, 18 Dec 2025 15:05:03 +0100 Subject: [PATCH 2/2] Polish "Harmonize Kotlin example for HTTP Service client support" See gh-48577 --- .../restclient/httpservice/groups/MyApplication.kt | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/MyApplication.kt diff --git a/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/MyApplication.kt b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/MyApplication.kt new file mode 100644 index 00000000000..635d3394ac1 --- /dev/null +++ b/documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/MyApplication.kt @@ -0,0 +1,14 @@ +package org.springframework.boot.docs.io.restclient.httpservice.groups + +import org.springframework.boot.autoconfigure.SpringBootApplication +import org.springframework.boot.runApplication +import org.springframework.web.service.registry.ImportHttpServices + +@SpringBootApplication +@ImportHttpServices(group = "echo", basePackages = ["com.example.myclients"]) +class MyApplication + +fun main(args: Array) { + runApplication(*args) +} +