본문 바로가기
IT || 개발공부/개발오류

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

by saesong 2023. 9. 7.

A query was run and no Result Maps were found for the Mapped Statement ...... 라는 오류가 발생했다.

 

쿼리(xml)에서 발생한 오류로,

나같은 경우는 select절에서 발생했다.

 

<select id=”aaaaaaa”>
select
…..
, .…
, ….
from a
</select>

에서 parameterType과 resultType을 안써줬기 때문에 발생한 오류였다.

(혹은 resultType이나 resultMap이 될 수도 있다….)

 

따라서

<select id=”aaaaaaa” patameterType=”java.util.Map” resultType=”egovMap”>
select
…..
, .…
, ….
from a
</select>

로 고쳐주어 오류 해결 완료.

 

 

댓글