Mybatisplus-plus 1.3.0 发布,实现在不分页时进行排序操作
原生mybatisplus分页与排序是绑定的,mpp优化了分页插件,使用MppPaginationInterceptor插件 在不分页的情况下支持排序操作 page参数size设置为-1可实现不分页取全量数据,同时设置OrderItem可以实现排序 从中央库引入jar <dependency> <groupId>com.github.jeffreyning</groupId> <artifactId>mybatisplus-plus</artifactId> <version>1.3.0-RELEASE</version> </dependency> 使用MppPaginationInterceptor插件 @Bean public PaginationInterceptor paginationInterceptor() { return new MppPaginationInterceptor(); } mapper中按照一般分页接口定义,同时支持返回值为list...