1,mapper:核心根标签
2,namepace:名称空间
3,select:查询功能标签
4,id:唯一标识
5,resultType:指定结果映射对象的类型
6,parameterType:指定参数隐射对象类型
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="StudentMapper" >
<select id="selectAll" resultType="com.hanjie.bean.Student">
select * from student;
</select>
</mapper>