How do I run a spring boot executable jar in a Production environment?

后端 未结 9 2148
一向
一向 2020-12-02 04:19

Spring boot\'s preferred deployment method is via a executable jar file which contains tomcat inside.

It is started with a simple java -jar myapp.jar.

9条回答
  •  鱼传尺愫
    2020-12-02 04:46

    I start applications that I want to run persistently or at least semi-permanently via screen -dmS NAME /path/to/script. As far as I am informed this is the most elegant solution.

提交回复
热议问题