MySQL table is automatically dropped when Tomcat Server restarts

I am creating a spring MVC web application. I am using Hibernate as my ORM. Whenever I restart my tomcat 7 server, it automatically deletes the table I created earlier. How can this be prevented?


source to share

1 answer

Find the text hbm2ddl

somewhere in your config, next to the Hibernate config settings. It should be installed on, update

or none

apparently you have create-drop


see also



All Articles