1.报错问题
It's likely that neither a Result Type nor a Result Map was specified
2.错误原因:mybatis配置文件中没有返回类型参数
<select id="getList">
select id,
content,
create_time,
update_time
from content
</select>
3.解决办法
添加resultType参数值
<select id="getList" resultType="com.example.demo.service.content.vo.ContentVO">
select id,
content,
create_time,
update_time
from content
</select>
网友评论