gnusraun

Egov org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement 본문

Backend/Egov

Egov org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement

gnusraun 2023. 5. 16. 12:05
728x90

org.apache.ibatis.executor.ExecutorException:

A query was run and no Result Maps were found for the Mapped Statement

"쿼리가 실행되었지만 매핑된 문장에 대한 결과 매핑이 없습니다.”

 

MyBatis 프레임워크에서 발생하는 예외 상황

Mapped Statement에 해당하는 Result Map을 찾을 수 없거나 누락시 에러가 발생한다

<!-- Mybatis 에러 발생 -->
<select id="selectBoardCount">
    SELECT COUNT(*)
    FROM TH_BOARD
</select>

<!-- Mybatis 에러 해결 -->
<select id="selectBoardCount" resultType="int">
    SELECT COUNT(*)
    FROM TH_BOARD
</select>

 

728x90

'Backend > Egov' 카테고리의 다른 글

Egov Excel download  (0) 2023.05.17
Egov jsp 에러 페이지 표출  (0) 2023.05.16
Egov RefreshableSqlSessionFactoryBean 서버 재시작 없이 XML 반영  (0) 2023.05.14
Egov 오라클 연동  (0) 2023.05.13
Egov Scheduler 설정  (0) 2023.05.13