spring-projects / spring-projects/spring-hateoas
ConverterRegisteringWebMvcConfigurer#0: defined in null, overriding RestTemplate
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
I'm facing a weird exception involving ConverterRegisteringWebMvcConfigurer.
I posted my problem here.
I tried all things I could think about without any luck. I'm not sure it's a bug, but for sure the error message is quite weird:
Field restTemplate in cloud.test.server.rest.clients.TenantRestClient required a single bean, but 2 were found:
- org.springframework.hateoas.config.ConverterRegisteringWebMvcConfigurer#0: defined in null
- org.springframework.hateoas.config.ConverterRegisteringWebMvcConfigurer#1: defined in null
As described in my question, my code works until Spring Boot 2.0.3.
Contributor guide
No contributing guide indexed for this repository
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 the reported duplicate ConverterRegisteringWebMvcConfigurer exception and read the linked Stack Overflow question for the reproduction details. Compare the behavior between Spring Boot 2.0.3 and 2.1.1; done means identifying why two RestTemplate-related beans are created and resolving the misleading or duplicate-bean failure.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100