Я пост ниже JSON содержатпружина контроллер JSON получить JSON Список
{"testListObject":[{"testText":"bbb","testDate":"02.01.2011 00:00:00.000"},{"testText":"aaa","testDate":"01.01.2011 00:00:00.000"}]}
в моем весеннем контроллер у меня есть
@RequestMapping(value = "/post/tester/", method = RequestMethod.POST)
public @ResponseBody String postItinerary(@ModelAttribute("testListObject") TestList testList) throws IOException {
System.out.println("1="+testList); //ok
System.out.println("2="+testList.childListObject); //print null
}
Любая идея, почему я получаю нуль для списка childListObject?
мой POJO выглядеть ниже
public class TestList(){
public List<ChildObject> childListObject;
//get and set
}
public class ChildObject(){
public String testText;
public String testDate;
//get and set
}