spring-projects / spring-projects/spring-data-rest
Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurer
@odrotbohm is already working on this.
Since Oct 24, 2022.
- Dominant language
- Java
- Stars
- 958
- Forks
- 568
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
We encounter a circular references problem when using spring-boot-starter-data-rest with Azure AAD Starter spring-cloud-azure-starter-active-directory, refer https://github.com/Azure/azure-sdk-for-java/issues/31497.
The problem will be resolved when change spring-boot-starter-data-rest to spring-boot-starter-web.
I investigate it and find that the mvcConversionService bean used in RepositoryRestMvcConfiguration cause the problem, more details could see https://github.com/Azure/azure-sdk-for-java/issues/31497#issuecomment-1288458597.
The azure issue mentioned before describe how to reproduce the problem. If you think Azure AAD Starter is complex, I created a easily sample to reproduce it.
Are there any workarounds for this or any plans to fix it? thanks!
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.
Assessment
This issue has not been assessed yet.