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 spring
就是mapper的方法是返回一個對象,可是數據庫查詢是一個列表,因此報錯。 數據庫