spring-hateoas - 更改 HATEOAS 链接的默认结构
问题描述
如何更改 Hateoas 链接的默认结构:
"first": {
"href": "http://localhost:8081/api/offer/?page=0&size=20"
},
"self": {
"href": "http://localhost:8081/api/offer/"
},
"next": {
"href": "http://localhost:8081/api/offer/?page=1&size=20"
},
"last": {
"href": "http://localhost:8081/api/offer/?page=2&size=20"
}
变成这样:
{
"href": "http://localhost:8081/api/offer/?page=0&size=20",
"rel" : "next",
"method": "GET"
},
解决方案
推荐阅读
- artifactory - 升级到 6.8.x Artifactory Pro 时未创建或删除 join.key 文件
- python - 使用 python notebook 将数据从 Azure Blob 读取到内存中
- c# - C#如何确定要反序列化到哪个对象
- asp.net-core - ASP.NET Core 自定义认证方案,authorize 属性不允许用户登录
- java - 考虑在你的配置中定义一个 * 类型的 bean
- c# - WPF GridSplitter TabHeader 定位
- python - “InstalledAppFlow.run_local_server()”系统地在重定向 URL 的末尾添加一个斜杠
- javascript - How do I run a function from a make-shift console?
- c# - C# / .NET 比较两个大列表并从两个列表中查找缺失的项目
- wordpress - 高级自定义字段中继器字段引导选项卡