How to use YamlPropertiesFactoryBean to load YAML files using Spring Framework 4.1?
问题 I have a spring application that is currently using *.properties files and I want to have it using YAML files instead. I found the class YamlPropertiesFactoryBean that seems to be capable of doing what I need. My problem is that I\'m not sure how to use this class in my Spring application (which is using annotation based configuration). It seems I should configure it in the PropertySourcesPlaceholderConfigurer with the setBeanFactory method. Previously I was loading property files using