FasterXML / jackson-module-kotlin

Module that adds support for serialization/deserialization of Kotlin (http://kotlinlang.org) classes and data classes.

Repository from Github https://github.comFasterXML/jackson-module-kotlinRepository from Github https://github.comFasterXML/jackson-module-kotlin

Deserialization of `List<Resource>

caroffan opened this issue · comments

Your question

I can already deserialize an object Resource without any special config, but when I try to deserialize a List<Resource> it is not really possible. The error I get is this:
com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Cannot construct instance of org.springframework.core.io.Resource (no Creators, like default constructor, exist): abstract types either need to be mapped to concrete types

But it works for one Resource so i don't uinderstand, Is this a bug ?