@PostConstruct public void initApplication() throws IOException {
  if (env.getActiveProfiles().length == 0) {
    log.warn("No Spring profile configured, running with default configuration");
  }
 else {
    log.info("Running with Spring profile(s) : {}",Arrays.toString(env.getActiveProfiles()));
  }
}

@ PostConstruct public void initApplication ( ) throws IOException { if ( env . getActiveProfiles ( ) . length == 0 ) { log . warn ( "No Spring profile configured, running with default configuration" ) ; } else { log . info ( "Running with Spring profile(s) : {}" , Arrays . toString ( env . getActiveProfiles ( ) ) ) ; } }
initializes csrs . < p / > spring profiles can be configured with a program arguments - - spring . profiles . active = your - active - profile < p / >
