XXX attempted to return null from a method with a primitive return type (int).
问题:
Caused by: org.apache.ibatis.binding.BindingException: Mapper method 'com.itheima.mapper.BrandMapper.SelectTotalCount attempted to return null from a method with a primitive return type (int).
翻译:
由 org.apache.ibatis.binding.BindingException: 映射器方法‘com.itheima.mapper.BrandMapper.SelectTotalCount 试图从具有基本返回类型(int)的方法返回空。
分析:
该方法的sql语句返回的是int,但加了resultMap。

浙公网安备 33010602011771号