Skip to content

Commit 52a1564

Browse files
committed
Polish "Remove old documentation relating to yaml and profiles"
See gh-24620
1 parent 93f822e commit 52a1564

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-boot-project/spring-boot-docs/src/docs/asciidoc/spring-boot-features.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -984,9 +984,6 @@ The `SpringApplication` class automatically supports YAML as an alternative to p
984984

985985
NOTE: If you use "`Starters`", SnakeYAML is automatically provided by `spring-boot-starter`.
986986

987-
WARNING: YAML files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
988-
So, in the case that you need to load values that way, you need to use a properties file.
989-
990987
==== Mapping YAML to Properties
991988
YAML documents need to be converted from their hierarchical format to a flat structure that can be used with the Spring `Environment`.
992989
For example, consider the following YAML document:
@@ -1035,6 +1032,9 @@ The preceding example would be transformed into these properties:
10351032
TIP: Properties that use the `[index]` notation can be bound to Java `List` or `Set` objects using Spring Boot's `Binder` class.
10361033
For more details see the "`<<boot-features-external-config-typesafe-configuration-properties>>`" section below.
10371034

1035+
WARNING: YAML files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
1036+
So, in the case that you need to load values that way, you need to use a properties file.
1037+
10381038

10391039

10401040
[[boot-features-external-config-loading-yaml]]

0 commit comments

Comments
 (0)