DB_CLOSE_DELAY=-1 # To keep the database open, add ;DB_CLOSE_DELAY=-1 to the database URL: jdbc:h2:mem:test;DB_CLOSE_DELAY=-1