A query was run and no Result Maps were found for the Mapped Statement

使用mybatis进行查询时,没有给定resultType值出现的错误。resultType是查询对象的类型。

<select id="selectByuid" parameterType="int" resultType="xxx.xxx.model.User"> 
     select * from t_user where uid=#{uid}
  </select>

粘贴自:https://blog.csdn.net/carl_jiang/article/details/53788447

posted @ 2019-08-13 17:12  Youpeng  阅读(965)  评论(0编辑  收藏  举报