문제

I'm new here and just starting to use Spring Roo.

I have a problem with Roo and Mysql, when the application starts, it delete all the database from Mysql. I know that for many people the solution was to put update or other "value on hibernate.hbm2ddl.auto" but I tried it and it continues doing the same, when I deploy or redeploy the app, it delete all the data in database, independently of changing "value"(and updating).

I want to "update" the database but don't know other options to solve this. if anyone could help me I would appreciate.

Thanks

(Im using Eclipse Indigo, xampp(apache,mysql,tomcat))

Thanks (If I stop/start it in the tomcat manager, it also erase the database..)

도움이 되었습니까?

해결책

The value of hibernate.hbm2ddl.auto should be none. If you are using maven then do a clean and package and then run tomcat (mvn tomcat:run). The issue is most likely because tomcat is picking up an older version of war.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top