Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
嗨,我想问你 hibernate.hbm2ddl.auto 设置了什么值。我只想在它们将被更改并添加新表时更新模式。如果我设置更新它不会在实体 chenges 更新表。
if i set to update it doesn't update tables when entity chenges
是的,您的部署在其他地方一定有问题。
将 show sql 切换为 true,并检查您的日志是否有错误:
<property name="show_sql">true</property>