0

I have microservice written in spring boot that is not web app (no spring-boot-starter-web dependency). It consumes event from message bus and do some other calculation not related to web request at all.

Still I want it to be registered with Hashicorp Consul using spring cloud service registration (for external configuration and health checks) but it only registered automatically when I add the spring-boot-starter-web dependency.

Any ideas how to use spring-cloud-starter-consul without web dependency?

user1409534
  • 2,140
  • 4
  • 27
  • 33

0 Answers0