【问题标题】:RepositoryRestController links self and entity name same urlRepositoryRestController 链接自身和实体名称相同的 url
【发布时间】:2018-12-30 15:33:01
【问题描述】:

我一直在玩 spring 和 RepositoryRestController(在 CrudRepository 类上),我注意到在 _links 中有两个对我来说是相同的链接:

_links":{  
   "self":{  
      "href":"http://localhost:8080/api/nodes/1"
   },
   "node":{  
      "href":"http://localhost:8080/api/nodes/1"
   }
}

是否可以禁用它,因为我认为它只会增加响应的大小并且没有任何价值。

谢谢, 塞尔吉乌

【问题讨论】:

    标签: spring spring-data-rest


    【解决方案1】:

    我找到了解释该行为的票证: https://jira.spring.io/browse/DATAREST-732

    【讨论】:

      猜你喜欢
      • 2015-11-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-08-09
      • 2014-01-19
      • 1970-01-01
      • 1970-01-01
      • 2014-02-06
      相关资源
      最近更新 更多