{ “code”: “-1”, “msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Ex

前端发起请求以后返回以下数据

{
“code”: “-1”,
“msg”: “nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 6”,
“info”: null,
“error”: null
}

提示信息显示期待得到一个或者null的结果集,但是select语句返回了六个结果。很明显是SQL语句的问题,可以查看代码,找到对应的SQL语句,在navicat等工具下执行一次,看下结果个数

猜你喜欢

转载自blog.csdn.net/qq_34194159/article/details/109558214