spring-cloud / spring-cloud/spring-cloud-consul
Depends on web to import a config
Nobody has claimed this yet.
- 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.
My app its an Application Runner with spring boot 3, java 17 and spring cloud 2022.0.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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