mapper文件简单格式
Posted 牧阳人
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mapper文件简单格式相关的知识,希望对你有一定的参考价值。
<?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="包名">
<select id="接口方法名" resultType=model地址">
select id , title ,detail_desc , answer_count,last_modified
from questions order by last_modified desc
</select>
以上是关于mapper文件简单格式的主要内容,如果未能解决你的问题,请参考以下文章