报错为:
org.apache.ibatis.exceptions.PersistenceException:
<select id="findById" parameterType="int" resultType="user">
<include refid="selectUser"/>
<where>
<if test="id!=0">
and id=#{id}
</if>
</where>
</select>
</mapper>
想问问为何
Mapper 接口方法的参数上加上 @Param("id") 试试