SyntaxFix
Write A Post
Hire A Developer
Questions
This variant looks more simple and elegant.
CollectionType typeReference = TypeFactory.defaultInstance().constructCollectionType(List.class, Dto.class); List<Dto> resultDto = objectMapper.readValue(content, typeReference);