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标签就好了。
记录在这,如果你也遇到这样底阶位的问题,友情提示 避免踩坑。