代码如下:public void exportHibernteToSQL(){ Configuration cfg=new Configuration().configure(“/hibernate.cfg.xml”); SchemaExport schemaExport = new SchemaExport(cfg); schemaExport.setOutputFile(“d:/mysql_sql.sql”); schemaExport.create(true, false); }注意:Hi