Wie ktoś jak zdeserializować multimape vavrovą?
Mam taki kod:
private fun typeReference() = object : ParameterizedTypeReference<HashMultimap<String, String>>() {}
val response = restTemplate.exchange("http://localhost:${port}/user", HttpMethod.POST, HttpEntity(newUser), typeReference())
Dostaje:
Type definition error: [simple type, class io.vavr.collection.HashMultimap]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of `io.vavr.collection.HashMultimap` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)
scibi92