在spring-web项目中可以表示用于接收请求参数的 Bean 对象。 在 DTO 字段上声明约束注解. @Data public class UserDTO { private Long userId; @NotNull @ ...
確定! 回上一頁