Application based on Spring Boot REST API starter fails to start up after adding Spring Boot HATEOAS starter with NoUniqueBeanDefinitionException exception:
This is caused by ObjectMapper bean definition in RestApiAutoConfiguration which deactivates instance annotated with @Primary from JacksonAutoConfiguration.JacksonObjectMapperConfiguration.
Such configuration in not an issue while only one ObjectMapper instance is present in the application context. However, adding a module which has its own ObjectMapper (such as Spring Boot HATEOAS starter) makes the problem surface.
Minimal project that reproduces issue is available here:
Pull request with proposed solution: