【C017126】在MyBatis中,对以下代码片段说法错误的选项是( )。
<mapper namespace="org.mybatis.example.BlogMapper">
<select id="selectBlog" parameterType="int" resultType="Blog">
select * from Blog where id = #{id}
</select>
</mapper>
A.以上代码应写在mybatis-conf.xml配置文件中的<mappers>标签里
B.以上代码应写在Mapper.xml映射文件中
C.<mapper>标签中的namespace属性为必填,一般填写对应的接口文件的完全限定名
D.以上代码的作用是从数据库中查询id为传入的指定值的所有记录并将每条记录封装成Blog对象