Programming Language/Javascript, ...

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

Ma_Sand 2023. 2. 5. 21:47
반응형

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 '###mapper'. It's likely that neither a Result Type nor a Result Map was specified.

 

해당 오류는 mapper에서 mybatis 부분의 resultType을 올바르게 작성하지 않아서 발생하는 것이다.

resultType을 바르게 작성하면 오류가 사라진다.

 

나의 경우 resultType을 적지 않아서 해당 오류가 발생하였다.

 

반응형