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

After the front end initiates the request, the following data is returned

{
“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
}

The prompt message shows that one or null result set was expected, but the select statement returned six results. Obviously it is the SQL statement problem. You can check the code, find the corresponding SQL statement, execute it once under Navicat and other tools, and see the number of results

Guess you like

Origin blog.csdn.net/qq_34194159/article/details/109558214