Skip to content

Harium/marine-healthcheck

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

web-healthcare

Web module to check server status. It creates a "/health" route in your server if status

Maven

<dependency>
    <groupId>com.harium.marine</groupId>
    <artifactId>healthcheck</artifactId>
    <version>1.1.0</version>
</dependency>

Usage

Using raw SparkJava

new HealthCheck().init();

Using Harium Web

Web.register(HealthCheck.class);

Then, access /health route via GET:

http://localhost:8080/health