Skip to content

Allow YamlProcessor subclasses to build the flattened map [SPR-12499] #17104

@spring-projects-issues

Description

@spring-projects-issues

Phil Webb opened SPR-12499 and commented

Spring Boot needs to create a PropertySource from a yaml file and retain the order of the loaded keys. We need something similar to YamlPropertiesFactoryBean but that doesn't return a Properties object.

One option is the YamlMapFactoryBean, however, the resulting Map doesn't flatten out keys in the same way as the YamlPropertiesFactoryBean so instead Boot should directly extend YamlProcessor and that should expose a method that can flatten the map.

See #17077 and BOOT-2022 for more background.


Affects: 4.1.2

Issue Links:

Referenced from: commits 87f1512

Metadata

Metadata

Assignees

Labels

in: coreIssues in core modules (aop, beans, core, context, expression)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions