spring-cloud / spring-cloud-consul

Spring Cloud Consul
http://cloud.spring.io/spring-cloud-consul/
Apache License 2.0
813 stars 541 forks source link

Binding to target ConsulProperties(host=localhost, port=8500, enabled=true) failed: #423

Closed LincolnLu8 closed 5 years ago

LincolnLu8 commented 6 years ago

my dependencies configration:

org.springframework.cloud spring-cloud-starter-consul-discovery 1.3.3.RELEASE org.springframework.cloud spring-cloud-consul-core 1.3.2.RELEASE org.springframework.boot spring-boot-actuator

and my issue:

Binding to target ConsulProperties(host=localhost, port=8500, enabled=true) failed: Property: spring.cloud.consul.host Value: null Reason: cannot be null

is there something wrong with my config? and how can I do to solve this problem

thanks

spencergibb commented 5 years ago

You need to not mix versions. Please try with 1.3.5.RELEASE.

spring-projects-issues commented 5 years ago

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues commented 5 years ago

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.