注:本文内容都来自互联网,通过自己整理用于学习,不作任何其他作用!
<?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="cn.mybatis.mydemo.mapper.StudentMapper">
<select id="getStudent" parameterType="long" resultType="student">
SELECT id,name,address FROM Student WHERE id =#{id}
</select>
</mapper>