studyplan
nested exception is org.apache.ibatis.executor.ExecutorException 오류 resultMap 본문
스프링
nested exception is org.apache.ibatis.executor.ExecutorException 오류 resultMap
무한머니 2022. 7. 26. 00:30nested 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 에 정의해 두었는데
셀렉은 저걸 못찾는단다 ..
그래서 넣어주고 테스트를 해보면 ?
통과 된것을 볼수 있다
'스프링' 카테고리의 다른 글
java.lang.StringIndexOutOfBoundsException: 에러 해결 . 방지 (0) | 2022.07.27 |
---|---|
mybatis delete 문 오류 (0) | 2022.07.26 |
@PathVariable 예제코드 , 값 받기 (0) | 2022.07.21 |
mybatis 에서 ReflectionException 문제 ! (0) | 2022.07.21 |
mybatis 에서 ExecutorException 오류 (0) | 2022.07.21 |
Comments