MyBatis報錯:Expected one result (or null) to be returned by selectOne(), but found: 2

歡迎訪問我的網站:www.ifueen.com Mybatis報錯問題 一次項目在使用MyBatis進行高級查詢的時候,如果傳入的值爲空報錯:Expected one result (or null) to be returned by selectOne(), but found: 2 Mapper.xml如下: 不要在意查詢的語句,我給出的思路是,如果傳進來的name爲空,就查詢所有,不然就進
相關文章
相關標籤/搜索