the content of the database is lost at the moment the last connection is closed.
If you want to keep your content you have to configure the url like this
jdbc:h2:mem:test;DB_CLOSE_DELAY=-1If doing so, h2 will keep its content as long as the vm lives.
No comments:
Post a Comment