Skip to content

유효성 검증 필요 항목

enyo9rt edited this page Jul 18, 2022 · 6 revisions
  • UserLoginVO 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