티스토리 뷰

Expected one result (or null) to be returned by selectOne(), but found: 3]


int searchCount = sqlSession.selectOne(namespace+".searchList",map);

넌 selectOne으로 불렀으면서 쿼리 결과는 왜 때문에 여러개 인거야!!!! 

라는 에러.

알고보니 내 실수 namespace에 list로 호출 되는 mybatis 넣어놓음 

그래서 다시 알맞게 한개 반환되는 mybatis로 수정 함. 잘됨.


댓글