1 @Test
2     public void testCreateDB(){
3         Configuration cfg = new Configuration().configure();
4         SchemaExport se = new SchemaExport(cfg);
5         //第一个参数 是否生成ddl脚本  第二个参数  是否执行到数据库中
6         se.create(true, true);
7     }

 

相关文章:

  • 2021-05-30
  • 2022-12-23
  • 2021-11-22
  • 2021-04-27
  • 2021-11-23
  • 2021-07-04
猜你喜欢
  • 2021-08-15
  • 2022-02-23
  • 2022-02-17
  • 2021-11-20
  • 2022-12-23
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案