-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Precedence of included profiles _still_ broken since 2.0.2 #15598
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
Comments
@jruhe-adesso I wasn't able to reproduce this on Spring Boot 2.0.7. Can you provide a small sample that reproduces the behavior? We have a test that, if I understood correctly, tests this behavior. |
Here is my example. Issue is specified in a single test class (2 of 3 tests fail) Thank you for your quick response. |
Thanks for the sample. This is the expected behavior. In the sample, I'm going to close the issue as this is the expected behavior for profiles included in profile-specific files. If you have anymore questions please join us on Gitter or ask on StackOverflow. |
@mbhave could you please elaborate why this is the expected behavior? |
Why is this issue closed, where is the current issue for this problem? Still have that problem with 2.2.7 It does not make sense that properties from included profiles override specified properties in current properties file. How else do you include lets-say "dev-stage" and then say "oh but I want to use my local database not the dev-stage database"... Many thanks |
@huehnerlady There's no current issue as we believe that things are currently behaving as designed and documented. If you have a requirement that the current design does not meet, please open a new issue with a small sample that illustrates what you're trying to do. |
@wilkinsona unless there is another property where I can enable the order of the included profiles, it is the same way as @jruhe-adesso explained. But maybe from another point of view. I always have to copy/paste everything - and I need to remember to check whether the default dev-properties changed in the meantime. So please fix this. Happy to create a separate issue with a sample project if needed, but I find the description of @jruhe-adesso quite good here :) |
@huehnerlady Yes, please. A separate issue with a sample project would be great. We'd like to be 100% sure that what we're looking at is exactly the same as what you're describing. |
Although classified as regression and closed #13151 is still present.
Consider a application-e.yml
Starting the the application with
results in following console output in Spring Boot 2.0.2+:
But I expect the right order to be
because the current behaviour makes is virtually impossible to build up a profile hierarchy, as more specific profiles cannot overwrite properties of less specific profiles.
If current behaviour is not a bug, an explaination would be very helpful.
Thanks a lot.
The text was updated successfully, but these errors were encountered: