스프링에서 iBatis나 Spring을 설정하고 사용하는 도중 아래와 같은 메시지를 담은 exception을 나타나면

Bean property 'TestDao' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

이것은 자신이 testDao를 bean으로 설정 한 후 testDao를 사용하는 어떤 클래스에 testDao를 setter injection하지 않았기 때문이다.

간단하게

 public void setTestDao(TestDao testDao) {
  this.testDao = testDao;
 }

같은 setter를 하나 만들어주면 잘 될 것이다.

'개발 이야기 > 삽질의 해답들' 카테고리의 다른 글

"URL" not allowed by Access-Control-Allow-Origin  (0) 2013.08.19
자바로 정렬하기  (0) 2010.02.02
Posted by 서오석
,