spring-projects / spring-projects/spring-hateoas
circular dependency between hateoas beans - WebConverters
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 476
- PR merge metrics
- No merged PRs in 30d
Description
Hi Team,
We have a spring boot application which uses RestTemplate and it works fine. Now we have added another library called 'activiti' which also provided spring boot starter configuration for its beans. But after adding this library, the application does not boot anymore. We see the below circular dependency error.
spring-hateoas version - 2.2.0
spring-boot version - 3.2.0
Could please help here?
customRestTemplate defined in class path resource [org/eclipse/xpanse/modules/deployment/deployers/terraform/config/TerraformBootRestTemplateConfig.class]
↓
hypermediaRestTemplateConfigurer defined in class path resource [org/springframework/hateoas/config/RestTemplateHateoasConfiguration.class]
┌─────┐
| hypermediaWebMvcConverters defined in class path resource [org/springframework/hateoas/config/HateoasConfiguration.class]
↑ ↓
| jacksonObjectMapper defined in class path resource [org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration$JacksonObjectMapperConfiguration.class]
↑ ↓
| jacksonObjectMapperBuilder defined in class path resource [org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration$JacksonObjectMapperBuilderConfiguration.class]
↑ ↓
| standardJacksonObjectMapperBuilderCustomizer defined in class path resource [org/springframework/boot/autoconfigure/jackson/JacksonAutoConfiguration$Jackson2ObjectMapperBuilderCustomizerConfiguration.class]
↑ ↓
| customizeProcessModelObjectMapper defined in class path resource [org/activiti/api/runtime/conf/impl/ProcessModelAutoConfiguration.class]
↑ ↓
| org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration$EnableWebMvcConfiguration
↑ ↓
| hypermediaWebMvcConfigurer defined in class path resource [org/springframework/hateoas/config/WebMvcHateoasConfiguration.class]
└─────┘
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 by reproducing the boot failure with Spring HATEOAS 2.2.0, Spring Boot 3.2.0, and the Activiti starter. Trace the listed configuration classes, especially RestTemplateHateoasConfiguration, HateoasConfiguration, JacksonAutoConfiguration, ProcessModelAutoConfiguration, and WebMvcHateoasConfiguration. Done means identifying whether the dependency cycle is a library incompatibility or configuration issue and documenting a verified resolution.
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
- 25/100