How do I run the jar package generated by spring boot?

for example, there is a server.jar, that I run like this:

java -jar server.jar &

this runs smoothly, but when you exit the Terminal terminal tool, the operation of server.jar stops.
how can I perfectly deploy jar packages that run spring boot generation?

Mar.16,2021

you can configure backend services using systemd or supervisor. You can refer to this article systemd

.
Menu