原文: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