|
|
|
@ -681,12 +681,9 @@ public class ConfigFileApplicationListener
|
|
|
|
|
* @param processedProfiles the processed profiles
|
|
|
|
|
*/
|
|
|
|
|
private void resetEnvironmentProfiles(List<Profile> processedProfiles) {
|
|
|
|
|
String[] names = processedProfiles.stream().filter((profile) -> {
|
|
|
|
|
if (profile != null && !profile.isDefaultProfile()) {
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}).map(Profile::getName).toArray(String[]::new);
|
|
|
|
|
String[] names = processedProfiles.stream()
|
|
|
|
|
.filter((profile) -> profile != null && !profile.isDefaultProfile())
|
|
|
|
|
.map(Profile::getName).toArray(String[]::new);
|
|
|
|
|
this.environment.setActiveProfiles(names);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|