Caused by:$AnnotatedConnectException: Connection refused: no furthe

When starting the project today, this project used Elasticsearch service. This error was found in the background:
Under Caused by: ty. Channel. AbstractChannel $AnnotatedConnectException: Connection refused: no further information:/
The error message prompts as follows:

The reason:
This project USES Elasticsearch search service. In the error message, elasticSearch.transport and other key information are shown. In fact, this error is caused by Elasticsearch service which failed to launch successfully.
Restart the Elasticsearch service (if it doesn’t work at one time, try shutting it down and restarting it again).

I rebooted it several times before It worked. Don’t lose heart

Read More: