- mapper.xml 中sql语句如下
-
<select id="selectTotalCount" resultMap="brandResultMap">
-
select count(*) from tb_brand;
-
</select>
-
-
报错如下
-
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).
-
【Mybatis报错】attempted to return null from a method with a primitive return type (int).
最新推荐文章于 2024-02-05 10:11:33 发布