private ResponseEntity<UserRegistResponseDTO> regist(final @Valid @RequestBody UserRegistRequestDTO userRegistRequestDTO) throws UserRegistException{
return ReponseEntity.ok().body(userService.regist(userRegistRequestDTO);
}
public class UserRegistRequestDTO{
@NotNull
private String name;
@Email
private String email;
}

반드시 값이 존재하고 공백 문자를 제외한 길이가 0 이상반드시 값이 존재하고 길이 혹은 크기가 0 이상