Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Spring Boot DevTools YAML property loading does not work #19081
Version: 2.2.0.RELEASE and 2.2.1.RELEASE
After loading ~/.config/spring-boot/spring-boot-devtools.yaml (or the yml equivalent) the properties do not appear correct. The key seems to be the text on the line as it appears and without it's nested key value.
spring: profiles: - production
Will make a map like this:
I believe that the problem lies in the fact that org.springframework.boot.devtools.env.DevToolsHomePropertiesPostProcessor will call org.springframework.core.io.support.PropertiesLoaderUtils#loadProperties to load all DevTools properties. This component seems to only handle XML and Property formatted files.
It does not use the org.springframework.boot.env.PropertySourceLoader framework like org.springframework.boot.context.config.ConfigFileApplicationListener does.