From 6685d49faaa541faa3c5b68c81c9445c228ff6fa Mon Sep 17 00:00:00 2001 From: ningenMe Date: Mon, 20 Jun 2022 00:24:46 +0900 Subject: [PATCH] Harmonize Kotlin example See gh-31458 --- .../springapplication/applicationexit/MyApplication.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt index 8a9af9e30a..488273cb85 100644 --- a/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt +++ b/spring-boot-project/spring-boot-docs/src/main/kotlin/org/springframework/boot/docs/features/springapplication/applicationexit/MyApplication.kt @@ -32,5 +32,5 @@ class MyApplication { } fun main(args: Array) { - SpringApplication.run(MyApplication::class.java, *args) -} \ No newline at end of file + exitProcess(SpringApplication.exit(SpringApplication.run(MyApplication::class.java, *args))) +}