I\'m using spring boot with spring.jpa.hibernate.ddl-auto=create
, but when application restarted, all tables drops and creates again. Is there some way to avoid
The list of option which is used in the spring boot are
So for avoiding the data lose you use update
spring.jpa.hibernate.ddl-auto=update
hibernate.ddl-auto should usually not be used in production.