0

I am writing a web app with a angularJS front-end and Scalatra back-end. I have followed this tutorial on adding persistence using Slick and H2: http://www.scalatra.org/2.4/guides/persistence/slick.html

I want to know how to have the data in the database persist even if I restart the servlet.

vitr
  • 6,766
  • 8
  • 30
  • 50
  • It's not clear what you mean. If the data is in the database, restarting the servlet won't affect it. Please explain further – The Archetypal Paul Sep 13 '16 at 06:33
  • Don't worry, I was creating an in memory instance of the H2 database which doesn't persist data only provides a connection to the databse. – Sagar Patel Sep 13 '16 at 10:31

0 Answers0