nested exception is IncompleteElementException: Could not find parameter map

衣舞晨風發表於2016-11-11

錯誤資訊如下:

 [WARN ] org.springframework.beans.factory.support.DefaultListableBeanFactory-->
Invocation of init method failed; nested exception is org.apache.ibatis.builder.IncompleteElementException: 
Could not find parameter map org.lc.jiankunking.system.member.dao.TestInfoMapper.map

錯誤原因:

<insert id="insertTestInfo" parameterMap="map" >
//省略
</insert>

應該是(替換parameterMap為parameterType):

<insert id="insertLoginInfo" parameterType="map" >
//省略
</insert>

作者:jiankunking 出處:http://blog.csdn.net/jiankunking

相關文章