Answers for "how to run spring boot application in server"

1

run springboot as a service linux

#how to run your springboot as a service on linux
#add a file in you /etc/systemd/system/yourjarfile.service
#start file
[Unit]
Description=SaaS Service
After=syslog.target

[Service]
Type=simple
User=root
Restart=always
RestartSec=5
ExecStart=/path/to/yourjarfile.jar
SuccessExitStatus=143

[Install]
WantedBy=multi-user.target

#end of file
#systemctl enable yourjarfile.service
#systemctl start yourjarfile.service
#systemctl status yourjarfile.service
Posted by: Guest on December-30-2021
4

run spring boot application command line

java -jar target/myJavaProject.jar
Posted by: Guest on July-01-2020

Code answers related to "how to run spring boot application in server"

Browse Popular Code Answers by Language