<?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="org.mybatis.example.BlogMapper">
  <select id="selectBlog" resultType="Blog">
    select * from Blog where id = #{id}
  </select&gt;
</mapper

 按装 mybatisx 更好提示 mapper 接口是否绑定返回类型提示

 

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注