Answer the question
In order to leave comments, you need to log in
How to make custom health check in Spring?
Hello!
There was a need to make a small service on a spring with two endpoints.
The first of them is:
/api/v1/requests?dateStart={dateStart}&dateEnd={dateEnd} - should return data on requests from the database from the opening date to the closing date.
The second one:
/api/v1/status - should report the status of the service itself and the database.
So, actually, the question itself. How can this be implemented without Spring Actuator? It has too comprehensive functionality, and I just need to issue the status of the service and database.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question