java报错nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

java报错nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

 

 

 

 是因为sql语句中返回了多条,但是实际上需要的值只有一条

posted on 2021-05-12 15:02  果果smile  阅读(6992)  评论(0)    收藏  举报

导航