Now that we have the new Binder, it might be nice if people could quickly load a single YAML file easily. Currently the best we have is:

YamlPropertiesFactoryBean properties = new YamlPropertiesFactoryBean();
properties.setResources(new ClassPathResource("cities.yml"));
MapConfigurationPropertySource source = new MapConfigurationPropertySource(properties.getObject());

Comment From: spencergibb

Spring Cloud uses YamlPropertiesFactoryBean at least once here: VaultEnvironmentRepository

Comment From: philwebb

The new spring.config.import support removes a lot of the need for this one.