Merge pull request #31458 from ningenMe

* pr/31458:
  Polish "Harmonize Kotlin example"
  Harmonize Kotlin example

Closes gh-31458
pull/31463/head
Stephane Nicoll 2 years ago
commit a037ce14a7

@ -21,6 +21,8 @@ import org.springframework.boot.SpringApplication
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.context.annotation.Bean
import kotlin.system.exitProcess
@SpringBootApplication
class MyApplication {
@ -32,5 +34,6 @@ class MyApplication {
}
fun main(args: Array<String>) {
SpringApplication.run(MyApplication::class.java, *args)
}
exitProcess(SpringApplication.exit(
SpringApplication.run(MyApplication::class.java, *args)))
}

Loading…
Cancel
Save