I am trying to run gradle based hibernate spring boot application in background thread.
To run SpringBoot application with ubuntu as background application wia terminal, run below command
gradle clean build -- TO CLEAN AND BUILD GRADLE APPLICATION
cd TO YOUR BUILD PATH(JAR FILE PATH)
java -jar YOUR_APP_JAR.jar &
Here "&" will assured that when you close your terminal, your application will not kill.
check this for '&' usages in terminal
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With