报错信息:org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 35
原因是:你想要返回一条结果,但是却查到了35条结果,所以报错。
将检查xml文件哪条sql语句书写有问题,或返回结果映射不正确。