🌳 에러 코드
Wed May 31 19:04:58 KST 2023
There was an unexpected error (type=Internal Server Error, status=500).
nested exception is org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 'com.language.grammar_like.dao.GrammarLikeMapper.selectLikeCountByUserId'. 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.language.grammar_like.dao.GrammarLikeMapper.selectLikeCountByUserId'. It's likely that neither a Result Type nor a Result Map was specified.
🌳 해결 방법
🌾 원인 : xml에서 resultType을 제대로 명시해주지 않아서 생긴 오류.
🌾 해결 방법 : xml에 resultType을 명확히 명시해준다.
Before
After
'코딩 에러 및 질문' 카테고리의 다른 글
javax.el.PropertyNotFoundException (1) | 2023.06.04 |
---|---|
nested exception is org.hibernate.exception.SQLGrammarException (0) | 2023.06.03 |
글 삭제가 안 되는 현상. (0) | 2023.05.31 |
좋아요 빈하트에서 채운 하트로 바뀌지 않는 현상. (0) | 2023.05.31 |
Exiting from "ERROR" dispatch, status 404 (0) | 2023.05.30 |