Open cooolcai opened 2 years ago
PRs welcome
Hey @spencergibb , I would like to work on this issue. Can you please assign it on me?
Hey @spencergibb , I have few queries regarding the local setup of the project. Can we talk about this in a slack kinda environment?
Serivices wont register automatically when consul-server is started after starting spring-cloud-consul
version:spring-cloud-consul-discovery 3.1.0
I already configured spring.cloud.consul.discovery.heartbeat like this
then I checked the source code and found a bug. The bug is come from spring-cloud-consul-discovery package's class org.springframework.cloud.consul.serviceregistry.ConsulServiceRegistry. In this method public void register(ConsulRegistration reg),the original code is:
than I changed it like this:
Now when services is not registered successfully,the method will go to an exception,than I will add the registered services into the scheduler. Maybe you can fix this,thank you.