您需要杀死旧进程并将新进程作为服务运行。SpringBoot应用程序即服务在此进行了很好的解释。
我们使用的jenkins有一个不错的ssh插件:https ://wiki.jenkins-ci.org/display/JENKINS/Publish+Over+SSH+Plugin
编辑:运行spring启动作为一项服务添加spring开机参考- http://docs.spring.io/spring- boot/docs/current/reference/html/deployment- install.html @Vaelyr