This is a sample project that demonstrate the issue Spring-boot-Issue-3979
Steps to reproduce the issue:
- Run the project using mvn spring-boot:run
- Run the following in the command line
curl -X POST "Content-Type: application/json" --header "Accept: application/json" -d "{\"id\":123, \"name\":\"Car\", \"Chassis\":\"MyChassis\"}" "http://localhost:8080/api/car"
ChassisDeserializer was initialized using the one in HalHandlerInstantiator, instead of spring's BeanFactory which is provided by Jackson2ObjectMapperBuilder using SpringHandlerInstantiator.