根据评论中提到的内容,最简单的解决方案是:
@RequestMapping(method = RequestMethod.PUT, consumes = MediaType.APPLICATION_JSON_VALUE)@ResponseBodypublic Collection<BudgetDTO> updateConsumerBudget(@RequestBody SomeDto someDto) throws GeneralException, ParseException { //whatever}class SomeDto { private List<WhateverBudgerPerDateDTO> budgetPerDate; //getters setters}该解决方案假定您正在创建的HTTP请求实际上具有
Content-Type:application/json代替
text/plain



