org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned

org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2 功能:查询数据库当前用户是否存在 错误原因 :本人数据库有两条相同的数据 由错误提示可知,查询的结果是期望一条记录或者为空,但是返回的记过有2条
相关文章
相关标签/搜索