It’s likely that neither a Result Type nor a Result Map was specified.
Mybatis配置文件中没有返回类型参数
<select id="selectById">
SELECT * FROM `user_info` where id=#{infoid}
</select>
修改增加:resultType=“com.test.model.UserInfo”
<select id="selectById" resultType="com.test.model.UserInfo">
SELECT * FROM `user_info` where id=#{infoid}
</select>