개발

Expected one result (or null) to be returned by

만준이 2017. 5. 15. 03:09

Caused by: org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 10


이런종류의 에러는 에러메시지 그대로,

결과값이 하나이거나 없는걸로 알고있는데 10개나 나왔다... 뭐이런말임


mapper.xml파일에서 쿼리를 열심히 보면 나올 확률이 높다


selectList()를 했어야 했는데 selectOne()을 했다던가...하는 실수



반응형