private static void addDefaultProfile(SpringApplication app,SimpleCommandLinePropertySource source){
  if (!source.containsProperty("spring.profiles.active")) {
    app.setAdditionalProfiles(Constants.SPRING_PROFILE_DEVELOPMENT);
  }
}

private static void addDefaultProfile ( SpringApplication app , SimpleCommandLinePropertySource source ) { if ( ! source . containsProperty ( "spring.profiles.active" ) ) { app . setAdditionalProfiles ( Constants . SPRING_PROFILE_DEVELOPMENT ) ; } }
set a default profile if it has not been set
