From 793a107d27308ae172cd976da3242fcf37faadf8 Mon Sep 17 00:00:00 2001 From: Weix Sun Date: Sun, 14 Nov 2021 14:50:38 +0800 Subject: [PATCH] Fix yaml sample format in reference doc See gh-28670 --- .../src/docs/asciidoc/features/external-config.adoc | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc index 0cddaefd2008..6fc676b7a88a 100644 --- a/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc +++ b/spring-boot-project/spring-boot-docs/src/docs/asciidoc/features/external-config.adoc @@ -470,10 +470,16 @@ For example, the following file has two logical documents: [source,yaml,indent=0,subs="verbatim"] ---- - spring.application.name: MyApp + spring: + application: + name: "MyApp" --- - spring.config.activate.on-cloud-platform: kubernetes - spring.application.name: MyCloudApp + spring: + application: + name: "MyCloudApp" + config: + activate: + on-cloud-platform: kubernetes ---- For `application.properties` files a special `#---` comment is used to mark the document splits: