通用mapper報錯:AopInvocationException: Null return value from advice does not match primitive return...

在使用通用mapper插入方法insertSelective時,報錯AopInvocationException: Null return value from advice does not match primitive return type for: public abstract int

原因:sql出現問題。但是insertSelective這個sql本身不容易出現問題,大概率原因是數據庫表中字段的類型不對或者長度不夠

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章