-
Notifications
You must be signed in to change notification settings - Fork 4
Application profiles
The concept should be to define some main profiles that combine sub profiles. This should be something like a profile for production, a profile for development and a profile for testing. We support currently a production and development profile.
A main profile is not a file it is virtual definition that manifests in its sub modules it consists of.
The file application.properties should not more contain than the definition of default profile. It allows you to switch the profile you want to run the application with. If there is really really something that is common to all then move it there, but be really really conservative.
Profile example: development profile is defined in the application.properties file as follow spring.profiles.active=dev,h2
The default profile in application.properties is for now the development profile.
