public void initSchema ( ) { List < Resource > scripts = getScripts ( "spring.datasource.data" , this . properties . getData ( ) , "data" ) ; if ( ! scripts . isEmpty ( ) ) { if ( ! isEnabled ( ) ) { logger . debug ( "Initialization disabled (not running data scripts)" ) ; return ; } String username = this . properties . getDataUsername ( ) ; String password = this . properties . getDataPassword ( ) ; runScripts ( scripts , username , password ) ; } }
Initialize the schema if necessary .