标签:
<?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="com.mycom.mybatis_1.test1.userMapper"> <!-- 根据id查询,得到一个user对象 --> <select id="getUser" parameterType="int" resultType="com.mycom.mybatis_1.test1.User"> select * from users where id=#{id} </select> </mapper>
标签:
原文地址:http://www.cnblogs.com/mingforyou/p/5296246.html