How to enable consul in my spring boot microservice

I want to registered my spring boot to consul discovery server as a client how I can enable it.

Add below dependency in your pom.xml

        <!-- Consul Support -->

       <!-- Enable Actuator  -->

Add below properties in

#-----------consul Client details------#```

Add below annotation in Main Class: