Mapped Statements collection does not contain value for ***

java.lang.IllegalArgumentException:

Mapped Statements collection does not contain value for deleteBoard

java 소스에서 mybatis를 이용하여 deleteBoard 라는 쿼리를 호출하였는데 deleteBoard 이름으로 된 쿼리가 없어서 난 에러

실제 쿼리 xml 파일에 가보니 아래처럼 오타가 있었다.

<mapper>
<!– 게시물 삭제 –>
<delete id=”deleteBaord” parameterType=”int”>
delete from board where seq = #{seqarg}
</delete>
</mapper>

[해결버전]

<mapper>
<!– 게시물 삭제 –>
<delete id=”deleteBoard” parameterType=”int”>
delete from board where seq = #{seqarg}
</delete>
</mapper>

 

 

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s