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

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

上一篇:nested exception is org.apache.ibatis.builder.BuilderException: Error parsing Mapper XML.


下一篇:apply、call、bind比较