VO getter 와 setter 문제
- 작성자 :
- 오*원
- 작성일 :
- 2010-09-29 19:45:00
- 조회수 :
- 4,118
- 구분 :
- 실행환경
- 진행상태 :
- 완료
Q
VO 생성시
필드명이 "E_ADDR1" 이기 때문에
변수를 아래와 같이 선언 해주고
private String eAddr1;
Getter 와 Setter 을 아래와 같이 선언 했습니다.
public String getEAddr1() {
return eAddr1;
}
public void setEAddr1(String eAddr1) {
this.eAddr1 = eAddr1;
}
그리고 나서 EDIT화면을 호출하면 아래와 같은 오류가 납니다.
어떻게 해야 할지 감이 오지 않습니다.
파일 첨부가 안되네요
2010-09-29 18:51:13,869 ERROR [org.springframework.web.servlet.tags.form.InputTag] Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
심각: Servlet.service() for servlet jsp threw exception
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
심각: Servlet.service() for servlet action threw exception
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
필드명이 "E_ADDR1" 이기 때문에
변수를 아래와 같이 선언 해주고
private String eAddr1;
Getter 와 Setter 을 아래와 같이 선언 했습니다.
public String getEAddr1() {
return eAddr1;
}
public void setEAddr1(String eAddr1) {
this.eAddr1 = eAddr1;
}
그리고 나서 EDIT화면을 호출하면 아래와 같은 오류가 납니다.
어떻게 해야 할지 감이 오지 않습니다.
파일 첨부가 안되네요
2010-09-29 18:51:13,869 ERROR [org.springframework.web.servlet.tags.form.InputTag] Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
심각: Servlet.service() for servlet jsp threw exception
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
심각: Servlet.service() for servlet action threw exception
org.springframework.beans.NotReadablePropertyException: Invalid property 'eAddr1' of bean class [egovframework.fta.code.customer.BtCustomerVO]: Bean property 'eAddr1' is not readable or has an invalid getter method: Does the return type of the getter match the parameter type of the setter?
A
안녕하세요, 오석원님
문의하신 오류내역을 보면 Bean property `eAddr1` is not readable or has an invalid getter method에서
BtCustomerVO.eAddr1과 쿼리문의 E_ADDR1을 매핑시 오류가 발생하는 것 같은데 매핑을 위하여 쿼리문에서 resultMap을 정의하시면 됩니다.
query 부분의 resultClass도 resultMap으로 변경하시구요..
감사합니다
문의하신 오류내역을 보면 Bean property `eAddr1` is not readable or has an invalid getter method에서
BtCustomerVO.eAddr1과 쿼리문의 E_ADDR1을 매핑시 오류가 발생하는 것 같은데 매핑을 위하여 쿼리문에서 resultMap을 정의하시면 됩니다.
query 부분의 resultClass도 resultMap으로 변경하시구요..
감사합니다