spring-hateoas icon indicating copy to clipboard operation
spring-hateoas copied to clipboard

circular dependency between hateoas beans - WebConverters

Open swaroopar opened this issue 1 year ago • 0 comments

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] └─────┘

swaroopar avatar Dec 21 '23 10:12 swaroopar