Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring Boot DevTools YAML property loading does not work #19081

Closed
ddcruver opened this issue Nov 20, 2019 · 0 comments
Closed

Spring Boot DevTools YAML property loading does not work #19081

ddcruver opened this issue Nov 20, 2019 · 0 comments
Labels
type: bug A general bug
Milestone

Comments

@ddcruver
Copy link

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.

@ddcruver 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 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
@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Nov 20, 2019
@mbhave mbhave added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Nov 21, 2019
@mbhave mbhave added this to the 2.2.x milestone Nov 21, 2019
@mbhave mbhave modified the milestones: 2.2.x, 2.2.2 Nov 21, 2019
@mbhave mbhave closed this as completed in 8ec3ca7 Nov 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
None yet
Development

No branches or pull requests

3 participants