其实这个错非常简单:
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or nu
他的意思的是,我们预期只有一个数据返回,但是呢,现在返回了10个数据,为什么会这样了,可能是下面这种情况:
1:sql写错了
2:mybites的数据类型写错
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or nu
要把这个改成list的就好了
nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or nu

相关文章:

  • 2021-04-29
  • 2021-10-16
  • 2021-10-26
  • 2021-08-21
  • 2021-10-14
  • 2021-11-22
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-10-31
  • 2021-09-01
  • 2022-12-23
  • 2021-11-21
  • 2021-11-06
  • 2022-12-23
  • 2021-12-26
相关资源
相似解决方案