<?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.jt.mapper.UserMapper">
<!--Oracle中 ;号必定报错 不要加;号
resultType:
1.如果有别名包则自动拼接 com.jt.pojo.User
2.如果根据别名找不到,则使用默认规则
-->
<select id="findAll" resultType="User">
select * from demo_user
</select>
</mapper>
01-16
1210