Merge pull request #48577 from jwalter

* pr/48577:
  Polish "Harmonize Kotlin example for HTTP Service client support"
  Harmonize Kotlin example for HTTP Service client support

Closes gh-48577
This commit is contained in:
Stéphane Nicoll
2025-12-18 15:07:48 +01:00
2 changed files with 14 additions and 1 deletions
@@ -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
@@ -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<String>) {
runApplication<MyApplication>(*args)
}