執行方法返回下面的異常,請問怎么解決????
測試執行秒殺的方法出現下面的異常~~~~~~出現未知異常:nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2 這個怎么回事啊,怎么會返回兩個結果呢?????????????
測試執行秒殺的方法出現下面的異常~~~~~~出現未知異常:nested exception is org.apache.ibatis.exceptions.TooManyResultsException: Expected one result (or null) to be returned by selectOne(), but found: 2 這個怎么回事啊,怎么會返回兩個結果呢?????????????
2017-09-19
舉報
2018-08-13
請問你具體是怎么解決的呢,我也是這個問題,可是我沒有加監聽
2017-09-21
從log看應該事你返回數據類型問題吧,應該定義的數據類型是單一結果,實際結果是一個集合。你把結果換成集合類型試試