File based h2 persisted but not loaded in Spring Boot

后端 未结 1 1894
滥情空心
滥情空心 2020-12-17 09:03

I made a small application based on Spring Boot:

  • spring-boot-starter-web
  • spring-boot-starter-data-jpa

The application has simply one do

相关标签:
1条回答
  • 2020-12-17 09:41

    The default for spring.jpa.hibernate.ddl-auto is create-drop if you use an embedded database. You probably want it to be empty, or just validate (none might work as well but I think that's deprecated by hibernate).

    0 讨论(0)
提交回复
热议问题