You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
ddcruver
changed the title
Spring DevTools YAML Property Loading does not work
Spring Boot DevTools YAML Property Loading does not work
Nov 20, 2019
ddcruver
changed the title
Spring Boot DevTools YAML Property Loading does not work
Spring Boot DevTools YAML property loading does not work
Nov 20, 2019
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.
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.
The text was updated successfully, but these errors were encountered: