首先看一下報錯信息
org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 10
在確認代碼無誤的情況下,檢查Controller層關於page傳參位置(page必須放在第一位,否則就會出現上面的異常)
問題解決,具體原因我再查一下,后續有結果會重新更新。