记录springboot +mybatis+ sqlite 遇到的坑

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标签就好了。

记录在这,如果你也遇到这样底阶位的问题,友情提示 避免踩坑。

posted @ 2021-09-24 10:29  兔子码农  阅读(326)  评论(0)    收藏  举报