[Spring MVC] Bean Validation(검증)
·
Back-end/Spring
Bean Validation 사용 전Item (사용 전)@Datapublic class Item { private Long id; private String itemName; private Integer price; private Integer quantity; public Item() { } public Item(String itemName, Integer price, Integer quantity) { this.itemName = itemName; this.price = price; this.quantity = quantity; }} 만약 위와 같은 Item 객체가 있을 때 클라이언트에서 새로운 Item을 등록하면서가..