What am I doing wrong? I\'m using this little standalone App which runs and finds my src/main/resources/config/application.yml
. The same configuration doesn\'t work
In my case I was trying to test a library without a @SpringBootApp
declared in the regular app classpath, but I do have one in my test context. After debugging my way through the Spring Boot initialization process, I discovered that Spring Boot's YamlPropertySourceLoader (as of 1.5.2.RELEASE) will not load YAML properties unless org.yaml.snakeyaml.Yaml
is on the classpath. The solution for me was to add snakeyaml as a test dependency in my POM:
org.yaml
snakeyaml
1.19
test