Open anishsharma opened 1 year ago
The customization model has changed significantly in 1.0 already. Jumping from 0.24 to 2.0 is quite a leap. That said, you should be able to simply declare a bean of type HalConfiguration
, call ….withObjectMapperCustomizer(…)
on it and apply your customizations there. Additional media types can be registered via ….withMediaType(…)
.
We have a legacy app which we are updating to spring boot 3. We used to use spring-hateos 0.24 RELEASE and below code to register MappingJackson2HttpMessageConverter.
As we have updated to spring-hateos 2.0.1 via spring-boot-starter-data-rest 3.0.2. Upon running executing the WAR file in Tomcat 10 we are getting below exception.
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jsonConverter' defined in com.config.AppInitializer$RestServicesConfiguration: Failed to instantiate [org.springframework.http.converter.json.MappingJackson2HttpMessageConverter]: Factory method 'jsonConverter' threw exception with message: No bean named '_halObjectMapper' available