📜  hibernate 不断删除表 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:20.279000             🧑  作者: Mango

代码示例1
// You can achieve your purpose by adding this
spring.jpa.hibernate.ddl-auto = create

// But keep in mind that, everytime you start your application, it will delete all previous tables and data. So to avoid this, you just change it toupdate like this
spring.jpa.hibernate.ddl-auto = update