mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
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:
-1
@@ -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
|
||||
|
||||
+14
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user