Commit 52a15647 authored by Madhura Bhave's avatar Madhura Bhave

Polish "Remove old documentation relating to yaml and profiles"

See gh-24620
parent 93f822e7
......@@ -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]]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment