Polish "Remove old documentation relating to yaml and profiles"
See gh-24620
This commit is contained in:
parent
93f822e7b6
commit
52a15647a9
|
|
@ -984,9 +984,6 @@ The `SpringApplication` class automatically supports YAML as an alternative to p
|
|||
|
||||
NOTE: If you use "`Starters`", SnakeYAML is automatically provided by `spring-boot-starter`.
|
||||
|
||||
WARNING: YAML files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
|
||||
So, in the case that you need to load values that way, you need to use a properties file.
|
||||
|
||||
==== Mapping YAML to Properties
|
||||
YAML documents need to be converted from their hierarchical format to a flat structure that can be used with the Spring `Environment`.
|
||||
For example, consider the following YAML document:
|
||||
|
|
@ -1035,6 +1032,9 @@ The preceding example would be transformed into these properties:
|
|||
TIP: Properties that use the `[index]` notation can be bound to Java `List` or `Set` objects using Spring Boot's `Binder` class.
|
||||
For more details see the "`<<boot-features-external-config-typesafe-configuration-properties>>`" section below.
|
||||
|
||||
WARNING: YAML files cannot be loaded by using the `@PropertySource` or `@TestPropertySource` annotations.
|
||||
So, in the case that you need to load values that way, you need to use a properties file.
|
||||
|
||||
|
||||
|
||||
[[boot-features-external-config-loading-yaml]]
|
||||
|
|
|
|||
Loading…
Reference in New Issue