How connect to apm server fro spring boot

I'm using spring boot and in order to use script it needs to be connected to apm how can I do that?
Or do i get it right ,do I need to configure apm with spring boot in order to be able use scripts?