Query 请求参数
时间: 2024-02-10 17:34:15 浏览: 47
获取request的参数
Query请求参数是指用于设置查询条件的参数,一般用于指定分页、排序和返回字段等。在使用Query类时,可以通过page(pageIndex, pageSize)方法来设置分页参数,其中pageIndex表示当前页索引,pageSize表示每页显示的数据条数。例如:
```
Query query = new Query().page(2, 10);
List<User> list = dao.find(query);
```
这段代码表示查询第2页,每页显示10条数据。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Query类常用参数详解](https://blog.csdn.net/qq_45848504/article/details/122858289)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [前端请求中body和query传参](https://blog.csdn.net/weixin_45288172/article/details/127507520)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文