I use spring-boot in my project, and I run this jar file which is built by spring-boot as a service on Centos. When I run this service:
service myApp
Finally I found a way so that I can launch Spring-boot project properly.
The solution is use sudo /etc/init.d/myApp start instead of service myApp start
sudo /etc/init.d/myApp start
service myApp start