-
Notifications
You must be signed in to change notification settings - Fork 41.4k
Description
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.
i.e.
spring:
profiles:
- production
Will make a map like this:
"spring": ""
"profiles": ""
"-": "production"
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.