Fix yaml sample format in reference doc

See gh-28670
This commit is contained in:
Weix Sun 2021-11-14 14:50:38 +08:00 committed by Stephane Nicoll
parent 7f4c8aafdf
commit 793a107d27
1 changed files with 9 additions and 3 deletions

View File

@ -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: