【文件属性】:
文件名称:spring-boot-jpa-rest-demo-filter-paging-sorting:具有过滤器,分页和排序功能的Spring Boot Data JPA
文件大小:29KB
文件格式:ZIP
更新时间:2021-01-30 09:38:20
pagination sorting spring spring-boot spring-data
春天启动jpa休息演示过滤器分页排序
使用Spring引导MVC的示例应用程序Spring Data JPA能够执行过滤,分页和排序。
过滤
REST API按照演示应用程序中的说明处理过滤器。
它将以下概念解析并转换为org.springframework.data.jpa.domain.Specification 。 操作和规范映射保留为对lambda函数的操作。
符号
运作方式
过滤器查询参数示例
当量
等于
city=eq:Sydney
neq
不等于
country=neq:uk
gt
比...更棒
amount=gt:10000
te
大于或等于
amount=gte:10000
lt
少于
amount=lt:10000
升
小于或等于
amount=lte:10000
在
在
country=in:uk, usa, au
宁
不在
country=nin:fr, de, nz
btn
之间
joiningDate=btn:2018-01-01, 2016-01-01
喜欢
喜欢
firstName=like:John
分页
API的查询参
【文件预览】:
spring-boot-jpa-rest-demo-filter-paging-sorting-master
----src()
--------test()
--------main()
----README.md(2KB)
----pom.xml(5KB)
----.gitignore(2KB)