本来以为把List<Bean> 封装在一个javabean里,然后在映射文件里配置一个<resultMap>然后利用<collection>进行封装就好了,确实可以,但是也比较麻烦,查了一下百度发现也没什么例子可以直接返回List
后来才知道只需要配置一个resultMap就好了
List<stu> selectSomeStudent(@Param("f")int firstResult,@Param("r")int maxResult);
本来以为把List<Bean> 封装在一个javabean里,然后在映射文件里配置一个<resultMap>然后利用<collection>进行封装就好了,确实可以,但是也比较麻烦,查了一下百度发现也没什么例子可以直接返回List
后来才知道只需要配置一个resultMap就好了
List<stu> selectSomeStudent(@Param("f")int firstResult,@Param("r")int maxResult);