NoticeMapper.xml로 설정하고 Junit test를 돌렷더니 오류가 떳다.
찾아보니 대부분 mapper namespace 경로를 잘못 적거나 끝까지 안적은 경우.
select id 와 resultType 경로를 잘못적은 경우가 대부분 이였다.
다들 오타로 몇시간씩 헤메길래 오타가 있는지 확인하고 처음부터 다시 적기를 반복했다.
하지만 문제점은 xml파일이 META-INF 안에 있었던 거였다.
조원 중 한명이 셋팅을 해준걸 넘겨 받았는데 mapper.xml경로를 잘못잡은듯 하다..
저처럼 삽질 하지 않기를 바라며 글을 올립니다..ㅠㅠ
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="org.ezen.kurly.mapper.NoticeMapper">
<select id="getList" resultType="org.ezen.kurly.domain.NoticeVO">
<![CDATA[select * from notice where bno > 0]]>
</select>
</mapper>
--------------------------------------------------------
보통은 mapper namespace 에서 많이들 오타가 있어 오류가 나므로 1순위로 확인해보자!