What is the correct way to register a custom deserializer for a path variable in Spring web reactive?
Example:
@GetMapping("test/{customType}")
public String test(@PathVariable CustomType customType) { ...
I tried ObjectMapperBuilder, ObjectMapper and directly via @JsonDeserialize(using = CustomTypeMapper.class) but it wont register:
Response status 500 with reason "Conversion not supported."; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert value of type 'java.lang.String' to required type '...CustomType'; nested exception is java.lang.IllegalStateException: Cannot convert value of type 'java.lang.String' to required type '...CustomType': no matching editors or conversion strategy found