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?

+3


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



+11


source







All Articles