mybatis框架的Mapper配置文件模板

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org/DTD Mapper 3.0" 
        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="接口的全限定类名">
    <select id="getAll" resultType="">
        sql语句
    </select>
</mapper>

就这样

posted @ 2022-03-18 14:19  都几点了,还在睡  阅读(149)  评论(0编辑  收藏  举报