Hello,
If you are encountering an error as in the title. It is probably due to the singular object coming in the field you defined as List<>. It will be enough to make the following setting for ObjectMapper.
ObjectMapper objectMapper = new ObjectMapper()
objectMapper.configure(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY,true);
Seamless java days
0 Yorumlar