通过对象的方式接收参数时,加上@Vaild注解,如下: @PostMapping("/test3") public ResultData test4(@Valid @RequestBody User user) ...
確定! 回上一頁