public String bannerText ( ) { if ( null != bannerText ) return bannerText ; String bannerPath = environment . get ( ENV_KEY_BANNER_PATH , null ) ; if ( StringKit . isEmpty ( bannerPath ) || Files . notExists ( Paths . get ( bannerPath ) ) ) { return null ; } try { BufferedReader bufferedReader = Files . newBufferedReader ( Paths . get ( bannerPath ) ) ; bannerText = bufferedReader . lines ( ) . collect ( Collectors . joining ( "\r\n" ) ) ; } catch ( Exception e ) { log . error ( "Load Start Banner file error" , e ) ; } return bannerText ; }
Get banner text