First time using Spring boot.
I am trying to create a service with two methods. First one to consume json messages & append them to a file. The other to read the file & return list of messages.
To reduce overhead, I would like to open the file when the web app starts & close the file when the app terminates.
Any pointers would be appreciated.
Thanks