Skip to content

Commit

Permalink
Merge pull request #31458 from ningenMe
Browse files Browse the repository at this point in the history
* pr/31458:
  Polish "Harmonize Kotlin example"
  Harmonize Kotlin example

Closes gh-31458
  • Loading branch information
snicoll committed Jun 20, 2022
2 parents cd38347 + 8b9579e commit a037ce1
Showing 1 changed file with 5 additions and 2 deletions.
Expand Up @@ -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 {

Expand All @@ -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)))
}

0 comments on commit a037ce1

Please sign in to comment.