org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2
原因是因为你的接受值是单个对象不是List但是你查询到数据库大于一个值,可能是两个或多个
解决办法:1.将返回的接收值改为List
2.查询在数据库中只有一条数据的对象