1    @Test
2    public void testSchemaExport() {
3        new SchemaExport(new AnnotationConfiguration().configure()).create(
4                falsetrue);
5
6    }
SchemaExport方法導出數(shù)據(jù)表DDL語句,或者執(zhí)行生成的DDL語句。
第一個參數(shù)為true時,輸出腳本到Console,否則不輸出。
第二個參數(shù)為true時,執(zhí)行腳本,否則不執(zhí)行。