[Spring] It's likely that neither a Result Type nor a Result Map was specified.
Q0. 개요 스프링 프레임워크로 개발하면서 Mybatis기반의 XML파일에서 아래와 같은 에러가 발생한 적이 있다. 1. It's likely that neither a Result Type nor a Result Map was specified. 2. A query was run and no Result Maps were found for the Mapped Statement 이는 resultType 또는 resultMap이 없어서 발생된 에러이다. Q1. 결론적으로 태그를 사용할때는 나머지 update/delete/insert와는 다르게 resultType 또는 resultMap을 필히 작성해야한다. 예를 들면 다음과 같다. ....