Skip to content

Circular references problem when using RestTemplateBuilder on custom WebMvcConfigurerΒ #2193

@fangjian0423

Description

@fangjian0423

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 Azure/azure-sdk-for-java#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 Azure/azure-sdk-for-java#31497 (comment).

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!

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions