Mapper method 'com.ww.monitorSet.mapper.raderInfoMapper.deleteInfoById attempted to return null from a method with a primitive return type (int).
sql語句使用 jdbcTemplate.update()測試可正確執行,但是寫在mapper.xml
中就一直提示上面的錯誤,經檢查是刪除的語句用了select標簽,修改為delete標簽就好了。
記錄在這,如果你也遇到這樣底階位的問題,友情提示 避免踩坑。