Skip to content

Commit 2fa73c2

Browse files
committed
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
2 parents f61ac29 + 3e68988 commit 2fa73c2

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

documentation/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/io/restclient/httpservice/groups/EchoService.kt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ import org.springframework.web.bind.annotation.RequestBody
1919
import org.springframework.web.service.annotation.HttpExchange
2020
import org.springframework.web.service.annotation.PostExchange
2121

22-
@HttpExchange("echo")
2322
interface EchoService {
2423

2524
@PostExchange
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package org.springframework.boot.docs.io.restclient.httpservice.groups
2+
3+
import org.springframework.boot.autoconfigure.SpringBootApplication
4+
import org.springframework.boot.runApplication
5+
import org.springframework.web.service.registry.ImportHttpServices
6+
7+
@SpringBootApplication
8+
@ImportHttpServices(group = "echo", basePackages = ["com.example.myclients"])
9+
class MyApplication
10+
11+
fun main(args: Array<String>) {
12+
runApplication<MyApplication>(*args)
13+
}
14+

0 commit comments

Comments
 (0)