Skip to content

유효성 검증 필요 항목

enyo9rt edited this page Jul 18, 2022 · 6 revisions
  • UserLoginVO ->filter에서?
    String username @Pattern(regexp = "(?=.*[a-zA-Z])[-a-zA-Z0-9_.]{2,10}")
    String password @Pattern(regexp = "(?=.*\\d)(?=.*[a-zA-Z])[0-9a-zA-Z!@#$%^&*]{8,20}")

  • UserCreateRequestDto
    String username @Pattern(regexp = "(?=.*[a-zA-Z])[-a-zA-Z0-9_.]{2,10}")
    String password @Pattern(regexp = "(?=.*\\d)(?=.*[a-zA-Z])[0-9a-zA-Z!@#$%^&*]{8,20}")

  • User (Entity)
    String username @Pattern(regexp = "(?=.*[a-zA-Z])[-a-zA-Z0-9_.]{2,10}")
    String password @NotBlank

  • ProfileVO
    String name @Size max=10
    String about @Size max=60

  • UserProfile (Entity)
    String nickname @Size max=10
    String profile_info @Size max=60