How do you configure how Jackson is parsing into a Calendar? Is there anyway to set the format?
I am using
@RequestMapping(value = "/assign", method = RequestMethod.POST, consumes = MediaType.APPLICATION_JSON_VALUE)
@ResponseBody
public Form5398Obj arriveTrip(@PathVariable String siteId,
@RequestBody ErrorMsg anError) throws Exception {
System.out.println(anError.toString());
}
I noticed I am getting ERROR 400 because the Calendar field in ErrorMsg is not being converted properly. If I remove it from the POST, it works properly.
I noticed from a search that there are some standard forms that worked for me ""yyyy-MM-dd'T'HH:mm:ss.SSSZ", "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'", "EEE, dd MMM yyyy HH:mm:ss zzz", "yyyy-MM-dd"
Is there anyway to explicitly tell it to parse a certain way?