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

Depends on web to import a config #824

Open DanielGilB opened 1 year ago

DanielGilB commented 1 year 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