It's likely that neither a Resul

2020-07-09  本文已影响0人  森森deHOME

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>
上一篇 下一篇

猜你喜欢

热点阅读