<jdbc:embedded-database>
<jdbc:script location="classpath:schema.sql"/>
<jdbc:script location="classpath:test-data.sql"/>
</jdbc:embedded-database>
[color=olive]类中文件脚本:[/color]
EmbeddedDatabaseBuilder builder = new EmbeddedDatabaseBuilder();
EmbeddedDatabase db = builder.setType(EmbeddedDatabaseType.H2)
.addScript("my-schema.sql")
.addScript("my-test-data.sql").build();
db.shutdown();