checking whether spring boot application is running or not

22,418

There are two ways

  1. On system level - you can run your project as a service, which is documented in the Official documentation - Deployments. Then you can query the application status service myapp status.

  2. On application level - include Spring Boot Actuator in your app and use the Actuator endpoints such as /actuator/health as per Official documentation - Production Ready Endpoints. These endpoints can be exposed via HTTP or JMX.

Note: prior to spring boot 2.0 the actuator endpoint is /health

Share:
22,418
Rohan RM
Author by

Rohan RM

Updated on September 12, 2020

Comments

  • Rohan RM
    Rohan RM almost 4 years

    I've created a spring boot project and deployed it on a vm. I've added a command in local.rc that starts the spring boot application on reboot. I want to check whether the command got executed and the application is running. How do I do that?