java.lang.IllegalArgumentException: Invalid format: "2017-11-17T16:00:00.000Z" is malformed at "T16:00:00.000Z"
@PostMapping("/add/book/novel") public ResponseEntity add(@RequestParam(name = "title") String title, @RequestParam(name = "author") String author, @RequestParam(name = "word_count") String wordCount, @RequestParam(name = "public_date") @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") Date publicDate
Date publicDate 就会报上边的错,改为string就不报错