parameterMap属性而这个属性已经早废弃了且应该使用parameterType
完美解决!
<mapper namespace="com.wang.dao.UserMapper"> <resultMap id="LimitMap" type="User"> <result column="pwd" property="password"/> </resultMap> <select id="getUserByLimit" resultMap="LimitMap" parameterType="map"> select * from mybatis.user limit #{startPage},#{pageSize} </select> </mapper>