@RequestBody 前面要加上@Valid; pojo (在此例指User class) 要加上validation annotation (e.g. @NotBlank, @NotNull ...etc); validate fail 會丟 ...
確定! 回上一頁