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

posted @ 2022-04-15 22:31  HypoPine  阅读(580)  评论(0)    收藏  举报