My intention is to have two profiles in a spring boot application - development and production one. Development profile is meant just to override some variables of production pr
There are two parts to the problems here:
First is present in the answer refered in original question (here). I.e. how to inherit properties from profile. The answer is to include original profile. However for the situation we have it might be not needed.
Second problem is activating profiles done differently. I believe (but might turn out wrong) that in referred question the OP does not activate profile with this:
-Dspring.profiles.active=bar
This line overrides whatever is provided in the profile. So for this case the simplest solution to inherit properties would be to change the line in IDE to:
-Dspring.profiles.active=bar,foo
you can then omit properties in foo the are present in bar and also omit spring.profiles.include, however in that case foo will not be standalone profile. If that's ok - it will work this way.