-
Notifications
You must be signed in to change notification settings - Fork 41.2k
-Dspring.profiles.active breaks @ActiveProfiles #1109
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
Could you please provide a better description for your issue? Duplicate of #1095 ? |
here is reproduction for this: When Dspring.profiles.active is set then application-${profile}.properties isn't picked up by @activeprofiles please run to get failing test: |
You may have tried this without boot and noticed it would work as you expected but that's actually an issue, see SPR-8982.
That is already properly covered in the documentation |
hello, thank you for such a quick response. However, I have a follow-up questions:
However, with boot attempt to simplify things as most as possible I expected that just dropping application.properties in scr/test/resources would do the thing out of the box. Unfortunately, it seems that spring picks up the first one found in a classpath. In my case it was in fact src/test/resources/application.properties, completely ignoring src/main/resources/application.properties. Thank you for your support |
As a general rule, it would be best to post your question on StackOverflow with the
|
thank you for your answers |
No description provided.
The text was updated successfully, but these errors were encountered: