spring-cloud / spring-cloud/spring-cloud-consul

Depends on web to import a config

Open
#824 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

waiting-for-triage
Dominant language
Java
Stars
822
Forks
539
Avg merge
9h 31m
Merged PRs (30d)
7

Description

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

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with spring-cloud-consul-config/src/main/java/org/springframework/cloud/consul/config/ConsulConfigDataLocationResolver.java at the referenced line, then inspect the module dependency declarations. Reproduce the Application Runner setup with Spring Boot 3, Java 17, and Spring Cloud 2022.0.3 without the Web dependency. Done means Consul configuration can be imported without requiring Spring Web.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, spring, spring-boot
Domain
backend, cloud
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.