class MyTest{
public static void main(String[] args) throws Exception{
Configuration conf= new Configuration().configure();
//生成并输出sql到文件(当前目录)和数据库
SchemaExport dbExport=new SchemaExport(conf);
dbExport.create(true, true);
}
}
网友评论