程序员一代码搬运工
【Java学习心得和Java学习技术个人总结】

It’s likely that neither a Result Type nor a Result Map was specified.

org.apache.ibatis.executor.ExecutorException: A query was run and no Result Maps were found for the Mapped Statement ‘com.yq1012.dao.IUserDao.findUser’. It’s likely that neither a Result Type nor a Result Map was specified.
at org.apache.ibatis.executor.resultset.DefaultResultSetHandler.validateResultMapsCount(DefaultResultSetHandler.java:227)

忘记写返回值了

resultMap="usersResultMap"
	<select id="findAll" resultMap="usersResultMap" parameterType="java.util.Map">
		select * from user LIMIT #{startPage},#{endPage}
	</select>

 

赞(0)
未经允许不得转载:程序员一代码搬运工 » It’s likely that neither a Result Type nor a Result Map was specified.
分享到: 更多 (0)