通常状况下,咱们须要返回一个Listapp
在Dao层定义:spa
List<TbAddress> selectAll();
那么在对应的mapper文件中,应该以下:code
<select id="selectAll" resultType="com.lxl.pojo.TbAddress" > select * from tb_address </select>
这里只须要注意的是,只须要配置返回 resultType 为List<E> 的 便可。blog