【C017032】MyBatis中,对以下代码片段描述正确的选项是()。
Dao接口:
public List findById(String id);
Mapper:
<select id="findById" resultType="user" parameterType="map" >
select * from sys_users
<where>
<if test="id != null">
and id=#{id}
</if>
</where>
</select>
A.以上代码执行报错:因为resultType的参数“user”未定义
B.以上代码执行报错:因为resultType的参数“user”与接口方法的返回值类型不匹配
C.以上代码执行报错:因为编译后where后面紧接着and
D.以上代码执行报错:因为parameterType的参数“map”与传入值不匹配