This is done by placing @Valid annotation just before the @RequestBody annotation in the controller. @PostMapping @ResponseStatus(HttpStatus.
確定! 回上一頁