Expected one result (or null) to be returned by selectOne(), but found: 2
Expected one result (or null) to be returned by selectOne(), but found: 2
原因:
1)查询一条数据,但返回数据有多条
ps:数据库中有相同的数据,不一定完全相同,可能是要查询的字段相同

2)想要查询多条数据,但是被前台限制

今天搭建ssm框架实现登录注册时,遇见的一个小问题

相关文章: