에러문들

카테고리 없음 2016. 2. 28. 00:38

There is no getter for property named 



input text타입이나 number 타입으로 bean으로 해서 mybatis로 넘겼는데

빈.get하면 나오는데 getter가 없다고 하는 오류..


---> parameterType을 bean으로 넣어주는 경우.. #{} 쓸 때, 해당 빈의 멤버변수 대소문자와 같아야 함.

즉 bean.java에서 int num;으로 지정했으면

sqlMapper.xml에   #{num}으로 해줘야 함..


또는 #{}으로 써야할 것을 ${}로 쓰기 때문에.


------------------------------------------------------------------------


<input type="file" name="mem_pic" /> VO형에 mem_pic 변수가 선언되어 있는데

file타입에 name을 vo형의 mem_pic으로 써주면


multipartfile로 먼저 인식이 되어 vo형의 mem_pic 타입 미스매치나 getter를 찾을 수 없다고 뜸.

Posted by MHguu
,