查询总数没有值时报错

mybatis中报错attempted to return null from a method with a primitive return type (int).

 

 这个时候需要讲dao层接口的返回数据类型改成Integer就好了

相关文章: