The following is the fullcalendar js request to send to the server.
http://localhost:8080/NVB/rest/calendar/events?start=1425168000&end=1428796800 400
How to specify a date pattern ( @DateTimeFormat ) in Spring Param request to convert this time to a Date object. I tried different templates, but got a 405 Bad Request.
@RequestMapping(value = "/events", method = RequestMethod.GET) public @ResponseBody List<EventDto> addOrder(@RequestParam(value = "start") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) Date start, @RequestParam(value = "end") @DateTimeFormat(iso = DateTimeFormat.ISO.DATE) Date end) { LOGGER.info("Requesting event from [{}] to [{}]", start, end); return new LinkedList<EventDto>(); }
source share