인프런 커뮤니티 질문&답변
작성자 없음
작성자 정보가 삭제된 글입니다.
상품 수정이 안되는데 무슨 문제일까요?
작성
·
213
0
package hello.itemservice.domain.item;
import lombok.Data;
import java.util.List;
@Data
public class Item {
private Long id;
private String itemName;
private Integer price;
private Integer quantity;
private Boolean open;
private List<String> regions;
private ItemType itemType;
private String deliveryCode;
public Item(){
}
public Item(String itemName, Integer price, Integer quantity) {
this.itemName = itemName;
this.price = price;
this.quantity = quantity;
}
}
에러문구입니다.
Caused by: org.springframework.beans.NotReadablePropertyException: Invalid property 'Name' of bean class [hello.itemservice.domain.item.Item]: Bean property 'Name' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
계속 머리싸매고 생각해봐도 왜 안되는지 잘 모르겠네요 답변부탁드려요 ㅠ





