Skip to content

Deserialization of `List<Resource> #867

@caroffan

Description

@caroffan

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions