Look for the property hibernate.hbm2ddl.auto.
"Automatically export schema DDL to the database when the
SessionFactory is created. With create-drop, the database schema will
be dropped when the SessionFactory is closed explicitely.
eg. update | create | create-drop "
Hibernate 自动建表
最新推荐文章于 2023-07-07 18:45:00 发布