executor.ExecutorException: Statement returned more than one row, where no more than one was expected.
原因:想要的结果是要一个对象,但是查出来的结果是一个List ,那么就超出了 resultType 设置的参数,修改返回值类型即可。
executor.ExecutorException
最新推荐文章于 2022-09-12 10:43:58 发布
executor.ExecutorException: Statement returned more than one row, where no more than one was expected.
原因:想要的结果是要一个对象,但是查出来的结果是一个List ,那么就超出了 resultType 设置的参数,修改返回值类型即可。