code: protected void configureProfiles(ConfigurableEnvironment environment, String[] args) {
  		environment.getActiveProfiles(); // ensure they are initialized
  		// But these ones should go first (last wins in a property key clash)
  		Set<String> profiles = new LinkedHashSet<>(this.additionalProfiles);
  		profiles.addAll(Arrays.asList(environment.getActiveProfiles()));
  		environment.setActiveProfiles(StringUtils.toStringArray(profiles));
  	}
docs: Configure which profiles are active (or active by default) for this application
  environment. Additional profiles may be activated during configuration file
  processing via the {@code spring.profiles.active} property.
  @param environment this application's environment
  @param args arguments passed to the {@code run} method
  @see #configureEnvironment(ConfigurableEnvironment, String[])
  @see org.springframework.boot.context.config.ConfigFileApplicationListener