File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
spring-boot-project/spring-boot-docs/src/docs/asciidoc Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -984,9 +984,6 @@ The `SpringApplication` class automatically supports YAML as an alternative to p
984
984
985
985
NOTE: If you use "`Starters`", SnakeYAML is automatically provided by `spring-boot-starter`.
986
986
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
-
990
987
==== Mapping YAML to Properties
991
988
YAML documents need to be converted from their hierarchical format to a flat structure that can be used with the Spring `Environment`.
992
989
For example, consider the following YAML document:
@@ -1035,6 +1032,9 @@ The preceding example would be transformed into these properties:
1035
1032
TIP: Properties that use the `[index]` notation can be bound to Java `List` or `Set` objects using Spring Boot's `Binder` class.
1036
1033
For more details see the "`<<boot-features-external-config-typesafe-configuration-properties>>`" section below.
1037
1034
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
+
1038
1038
1039
1039
1040
1040
[[boot-features-external-config-loading-yaml]]
You can’t perform that action at this time.
0 commit comments