Bean Validation์ ํ๋์ ๊ฐ, ๋ฒ์ ๋ฑ์ ๊ฒ์ฆํ๊ณ ์ ํ ๋ ์ ์ฉํ๊ฒ ์ฌ์ฉํ ์ ์๋ ์ด๋ ธํ ์ด์ ๋ฐ ์ธํฐํ์ด์ค์ ๋ชจ์
์ด ๊ธฐ์ ์ ๊ตฌํ์ฒด ์ค ์ผ๋ฐ์ ์ผ๋ก ์ฌ์ฉํ๋ ๊ตฌํ์ฒด๊ฐ Hibernate Validator
Hibernate Validator 6.2.5.Final - Jakarta Bean Validation Reference Implementation: Reference Guide
Validating data is a common task that occurs throughout all application layers, from the presentation to the persistence layer. Often the same validation logic is implemented in each layer which is time consuming and error-prone. To avoid duplication of th
docs.jboss.org
@NotBlank, @NotEmpty, @Min, @Max ๋ฑ ์ผ๋ถ ์ด๋ ธํ ์ด์ ์ ์ข ์ข ์ฌ์ฉํ์๋๋ฐ, ๋ฌธ์๋ฅผ ํ์ธํด๋ณด๋ ๊ต์ฅํ ๋ง์ ์ด๋ ธํ ์ด์ ์ด ์กด์ฌํ๊ณ ์๋ค.
@NotNull vs @NotEmpty vs @NotBlank
๋๊ธ