If you run everything in docker, you should use docker-compose to bring everything up, and then you get container resolution via DNS by service name.
Otherwise, if you bring up your Springboot application in its own container, it will be trying to connect with itself on 0.0.0.0, whereas you want it connecting to the container that is running the Zeebe Gateway: