Skip to content

Commit

Permalink
Merge branch '2.5.x'
Browse files Browse the repository at this point in the history
Closes gh-28692
  • Loading branch information
snicoll committed Nov 16, 2021
2 parents cdc1425 + ea064ce commit 6d4537b
Showing 1 changed file with 10 additions and 4 deletions.
Expand Up @@ -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:
Expand All @@ -482,8 +488,8 @@ For `application.properties` files a special `#---` comment is used to mark the
----
spring.application.name=MyApp
#---
spring.config.activate.on-cloud-platform=kubernetes
spring.application.name=MyCloudApp
spring.config.activate.on-cloud-platform=kubernetes
----

NOTE: Property file separators must not have any leading whitespace and must have exactly three hyphen characters.
Expand Down

0 comments on commit 6d4537b

Please sign in to comment.