Can not deserialize instance of java.util.ArrayList out of VALUE_STRING

前端 未结 5 1677
谎友^
谎友^ 2020-11-30 04:41

I have a REST service built with Jersey and deployed in the AppEngine. The REST service implements the verb PUT that consumes an application/json media type. Th

5条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-11-30 04:59

    Setting this attribute to ObjectMapper instance works,

    objectMapper.enable(DeserializationFeature.ACCEPT_SINGLE_VALUE_AS_ARRAY);
    

提交回复
热议问题