스프링
nested exception is org.apache.ibatis.executor.ExecutorException 오류 resultMap
무한머니
2022. 7. 26. 00:30
nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.project.donate_prj.repository.QnaMapper.findOne'. It's likely that neither a Result Type nor a Result Map was specified.
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.project.donate_prj.repository.QnaMapper.findOne'. It's likely that neither a Result Type nor a Result Map was specified.
종종 이런 문제가 나오는데

잘 읽어보면
mybatis 에서 QnaMapper 에서 findOne 을 찾을수가 없다는 말이다 -

왜 찾을수 없냐면 .. .

내가 이렇게 저장해놓은걸
resultMap 에 정의해 두었는데
셀렉은 저걸 못찾는단다 ..
그래서 넣어주고 테스트를 해보면 ?

통과 된것을 볼수 있다