原文:org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2

在配置mybatis操作數據庫的時候會出現: org.apache.ibatis.exceptions.TooManyResultsException: Expected one result or null to be returned by selectOne , but found: 這是因為查詢結果的期望一條或者為空,但是實際上返回的記過有兩條。就是說數據表中有多條數據的,自己期望的獲取到 ...

2020-01-12 21:38 0 2317 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM