반응형

에러 메시지 : Type handler was null on parameter mapping for property '__frch_item_0.value'. 에러

현상 : my batis foreach 문 사용시 에러가 발생

<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
    #{item.value}
</foreach>

원인 :  parameter 전달이 부정확하고, xml에서 정확히 받지 못했을 경우 아래와 같은 오류가 발생할 수 있다.

해결 : 
<foreach collection="list" item="item" index="index" separator="," open="(" close=")">
    #{item,jdbcType=VARCHAR}
</foreach>

반응형

+ Recent posts