addActiveProfile abstract method

void addActiveProfile(
  1. String profile
)

Adds profile to the active profiles, keeping the others. When none was set yet, spring.profiles.active is read first, so the profiles from the configuration are kept too.

Throws ArgumentError for a blank profile or one starting with !.

Implementation

void addActiveProfile(String profile);