Hello spring boot team,
I wanted to have default fallback profile when no profile is specified. I found out (from a Baeldung article) that there was the property spring.profiles.default
which does exactly what I expected. Unfortunately that is not documented in the Spring Boot Reference Documentation neither in Common Application properties.
That is the log that I get when i start the application with no profile but with the property set. :)
Comment From: wilkinsona
Thanks for the suggestion. spring.profiles.default
is a Spring Framework feature and it is documented in the Spring Framework reference guide. That said, spring.profiles.active
is also a Spring Framework feature but it is covered in Boot's own documentation. I think it's probably worth giving spring.profiles.default
the same treatment. Let's see what the rest of the team thinks.
Comment From: philwebb
Reopening to also add some reference docs