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

728x90

 

 

쿼리는 실행 되었으나, Result Type 혹은 Result Map이 없어서 발생하는 오류.

누락된 Result Type 혹은 Result Map를 추가해주면 오류가 사라진다.

 

수정 전

   <select id="AtafficAccidentSeachUserId">
    	쿼리문
    </select>

 

수정 후

   <select id="AtafficAccidentSeachUserId" resultType="java.util.HashMap" parameterType="java.util.HashMap">
    	쿼리문
    </select>

 

728x90