Skip to content

Profiles

Kripth edited this page Jan 10, 2019 · 2 revisions

Profiles are used to divide the application in various parts that can be activated and deactivated.

The @Profile attribute can be added to controllers, components and entities, indicating that they will be active only when the profile is.

An active profile can be indicated in a properties file through the scorpion.profiles key or by implementing the ProfilesConfiguration interface in a class marked with @Configuration.

If a file with the profile name and .properties extension exists in the root directory of the application it will be treated as a configuration file.

You can’t perform that action at this time.