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.