java.lang.IllegalArgumentException: Result Maps collection does not contain value for com.example.mapper.UserMapper.map
导致异常原因
<select id="selectMapById" resultMap="map"> select id,name,age,email from user </select>
应该将resultMap 改成 resultType
导致异常原因
<select id="selectMapById" resultMap="map"> select id,name,age,email from user </select>
应该将resultMap 改成 resultType