- 博客(1)
- 收藏
- 关注
原创 attempted to return null from a methodwith a primitive return type (int).及count(*)返回null的解决
首先是报出 Mapper method 'com.xxx.mapper.BrandMapper.selectTotalCount attempted to return null from a method with a primitive return type (int). 的错误,在优快云上搜索相关的内容,发现是将mapper.xml和mapper.java中的变量设置为int,后改为Interger后控制台不会报出上述错误,但是selectTotalCount返回的值始终是null。
2022-09-08 23:37:59
2447
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人