Re Register the service in case of consul restart

I am using spring-cloud-starter-consul-discovery in my spring boot service for consul. I want to check is there any way to re-register the service automatically in case of consul restart.

@shandy0 Did you find the way to re register your service after Consul restart? I’m trying to do the same thing but the closest I’ve come has been using the property