I am using Spring Data jpa with Hibernate and Spring Data Redis and storing in MySQL database. Whenever I restart my application the existing data gets vanished.
Is there any properties that need be specified in application.properties or something else so that at the time of restarting application the data will not be vanished?
# jdbc.X
jdbc.driverClassName=com.mysql.jdbc.Driver
jdbc.url=jdbc:mysql://localhost:3306/ES?createDatabaseIfNotExist=true
jdbc.user=root
jdbc.pass=root
#hibernate.X
hibernate.dialect=org.hibernate.dialect.MySQL5Dialect
hibernate.show_sql=false
hibernate.hbm2ddl.auto=create-drop