mybatis

  记录使用 mybatis 过程中遇到的一些报错,及原因以及解决方法。

1. 报错:

  Could not find parameter map com.lx.mapper.HotelMapper.map

  Parameter Maps collection does not contain value for com.lx.mapper.HotelMapper.map

  原因:错把 resultType 写成 parameterType,又把 parameterType 写成了 parameterMap

<select id="selectList" parameterMap="map" parameterType="com.lx.dto.Hotel">

  解决:改过来。

原文地址:https://www.cnblogs.com/coding-one/p/11833328.html