mybatis使用count返回int的方法

<select id="countByExample" resultType="java.lang.Integer" >
select count(*) from XXXXXX
</select>


直接写"java.lang.Integer",接口中的返回值写int。

猜你喜欢

转载自blog.csdn.net/m_jack/article/details/80437440
今日推荐