I am writing a small application on Spring Boot, where time notifications occur.

If the server crashes and is picked up after a while, all data is lost.

The question is how to avoid it (so that the notification applications remain), or how to restore them? It is desirable in the form of a code of some example.

  • five
    Store non-temporary data in a database - Regent
  • I have a connection to the database, but they are not saved there; #database spring.jpa.hibernate.ddl-auto = create spring.datasource.url = jdbc: mysql: // localhost: 3306 / notification? true & useSSL = false spring.datasource.username = root spring.datasource.password = root - Jan Jack
  • Why aren't they stored there? - Regent
  • aah, there validate is necessary instead of create ... - Jan Jack

0