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

main application.yaml overrides test application.properties #24719

Closed
alexalbr opened this issue Jan 10, 2021 · 2 comments
Closed

main application.yaml overrides test application.properties #24719

alexalbr opened this issue Jan 10, 2021 · 2 comments
Assignees
Milestone

Comments

@alexalbr
Copy link

@alexalbr alexalbr commented Jan 10, 2021

Since Spring Boot 2.4 values in test application.properties are not used, if the same property exists in an application.yaml file in the main directory.
The attached demo project shows the issue. It works as expected when the spring.config.use-legacy-processing=true property is active

demo.zip

@mbhave
Copy link
Contributor

@mbhave mbhave commented Jan 11, 2021

Thanks for the sample @alexalbr. The order in which .properties and .yaml files are processed appears to have switched in 2.4.

@encircled
Copy link
Contributor

@encircled encircled commented Jan 13, 2021

Duplicate #24497

mbhave added a commit to mbhave/spring-boot that referenced this issue Jan 13, 2021
@mbhave mbhave closed this in ceff47a Jan 13, 2021
@snicoll snicoll modified the milestones: 2.4.x, 2.4.2 Jan 14, 2021
andymarke added a commit to ministryofjustice/community-api that referenced this issue Feb 16, 2021
mikehalmamoj pushed a commit to ministryofjustice/community-api that referenced this issue Feb 16, 2021
…#24719 is resolved (#368)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
7 participants