application.properties中,关于spring.jpa.hibernate.ddl-auto的值,
若设为create-drop,则相当于“若存在,则重建”,也就是说会覆盖原本的表与数据。
若设为update,则相当于“继续更新”,不会影响表中原有的数据。
此外,spring.jpa.show-sql 这一条对于debug而言相当有效果,当设为true的时候,会将执行的所有SQL语句打印出来。

相关文章:

  • 2022-12-23
  • 2021-05-09
  • 2021-04-28
  • 2021-11-15
  • 2022-12-23
  • 2021-08-09
  • 2021-04-14
  • 2022-02-21
猜你喜欢
  • 2022-02-16
  • 2022-12-23
  • 2021-09-14
  • 2021-10-17
  • 2022-12-23
  • 2021-06-17
  • 2021-09-20
相关资源
相似解决方案