본문 바로가기

Tech

ExecutorException: It's likely that neither a Result Type nor a Result Map was specified.

안녕하세요 G1N4입니다 :-)

 

 

[발생상황]

기능 추가를 위해 쿼리를 하나 더 추가하면서 만난 에러입니다. 

 

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 '쿼리위치'.  It's likely that neither a Result Type nor a Result Map was specified.

 

 

[해결완]

아래와 같이 쿼리에 resultType을 추가해주면 정상작동하므로 해피엔딩입니다.

 

<select id="selectAccount" resultType="java.lang.String"> 
    SELECT 
    FROM 
    WHERE 
</select>

 

 

그럼 다음 글에서 만나요 ;-)

 

 

[참조링크]


MyBatis-MyBatis로-조회할-때-Its-likely-that-neither-a-Result-Type-nor-a-Result-Map-was-specified