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>

你可能感兴趣的:(A query was run and no Result Maps were found for the Mapped Statement)