Hibernate不创建表-Spring MVC

Hibernate不创建表-Spring MVC,第1张

Hibernate不创建表-Spring MVC

采用

<prop key="hibernate.hbm2ddl.auto">create</prop>

根据文档,更新会更新现有架构

简单来说,

validate: validate the schema, makes no changes to the database.update: update the schema.create: creates the schema, destroying previous data.create-drop: drop the schema at the end of the session.auto : Automatically validates or exports schema DDL to the database when the SessionFactory is created


欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/zaji/5621962.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-12-15
下一篇2022-12-15

发表评论

登录后才能评论

评论列表(0条)

    保存