Kibana version:
7.16.3
Elasticsearch version:
7.16.3
APM Server version:
7.16.3
APM Agent language and version:
Java, 1.30.1
Fresh install or upgraded from other version?
Fresh
Description of the problem including expected versus actual behavior. Please include screenshots (if relevant):
I have spring boot project with apm-agent dependency, i started my app but there is error - Connection refused, I cannot connect to APM server. Also i'm thinking about apm server certificate, should I add it somewhere?
application.properties:

init function:
@Configuration:
Provide logs and/or server output (if relevant):
ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Error trying to connect to APM Server at http://localhost:8200/intake/v2/events. Although not necessarily related to SSL, some related SSL configurations corresponding the current connection are logged at INFO level.
ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type JSON_WRITER with this error: Connection refused (Connection refused)
java.net.ConnectException: Connection refused (Connection refused)





