我在前台传入{
"holidayName": "2017春节",
"holidayType": "国家节假日",
"holidayCycle": [
{
"holidayStartDate": "2017-12-10",
"holidayEndDate": "2017-12-16"
},
{
"holidayStartDate": "2017-12-25",
"holidayEndDate": "2017-12-29"
}
]
}
这样的参数 ,但是我在后台只拿到集合中的第一个对象,我的controller是:@RequestMapping(value = "/saveHoliday",method=RequestMethod.POST)
public ResultModel saveHolidayType( HolidayInfo in,HttpServletRequest request,HttpServletResponse response)
,,,,实体类是:
public class HolidayInfo extends PageableObject {
private Long id;
private String holidayName;
private Integer schoolId;
private String holidayType;
private String holidayStartDate;
private String holidayEndDate;
private String remarks;
private List<HolidayCycle> holidayCycle;
求大神指点...... 为啥我在后台就只拿到了一个对象?
private List<HolidayCycle> holidayCycle; 求大神给个解决方式
最后一行的:private List<HolidayCycle> holidayCycle;忘记删除了 和前面重复了 请忽略
潇潇雨雨
侃侃尔雅