기본 ItemMapper @Mapper public interface ItemMapper { void save(Item item); void update(@Param("id") Long id, @Param("updateParam")ItemUpdateDto itemUpdateDto); Optional findById(Long id); List findAll(ItemSearchCond itemSearch); } MyBatis 매핑 XML을 호출해주는 매퍼 인터페이스이다. 이 인터페이스에는 @Mapper 애노테이션을 붙여주어야 한다. 그래야 MyBatis에서 인식할 수 있다. 이 인터페이스의 메서드를 호출하면 다음에 보이는 xml의 해당 SQL을 실행하고 결과를 돌려준다. ItemMapper 인터페이스의 구현..