My table data got deleted when i restart my spring boot application after changing the value of 'spring.jpa.hibernate.ddl-auto' to 'create' from 'verify'. why it is so? what should i do to get my data back?
I could see some drop query executing in my IDE console. Why it happened? can someone please explain?
Make the following change in application.properties
spring.jpa.hibernate.ddl-auto=none
You can read the official document of spring-boot.And the property is related to hibernate.hbm2ddl.auto
in hibernate configuration.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With