@ Bean public DataSource dataSource ( ) { // Replace this with your own datasource. return new EmbeddedDatabaseBuilder ( ) . setName ( "test" ) . setType ( EmbeddedDatabaseType . HSQL ) . addScript ( "classpath:hsql-schema.sql" ) . build ( ) ; }
Use this data source to create an embedded database .