spring-cloud / spring-cloud-consul

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

Depends on web to import a config #824

Open DanielGilB opened 11 months ago

DanielGilB commented 11 months ago

Describe the bug `java.lang.NoClassDefFoundError: org/springframework/web/util/UriComponentsBuilder' It forces me to install the Web dependency to connect to Consul and get the config.

https://github.com/spring-cloud/spring-cloud-consul/blob/main/spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigDataLocationResolver.java#L48

My app its an Application Runner with spring boot 3, java 17 and spring cloud 2022.0.3