<?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">
基础的写法 新建.xml文件后直接cv即可。
<mapper namespace="实体类的mapper所在的路径">
里面写<select id="" resultType=""></select>
</mapper>