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