Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/11.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Java 如何禁用HAL@RepositoryRestResource链接?_Java_Spring_Spring Data Rest_Spring Rest - Fatal编程技术网

Java 如何禁用HAL@RepositoryRestResource链接?

Java 如何禁用HAL@RepositoryRestResource链接?,java,spring,spring-data-rest,spring-rest,Java,Spring,Spring Data Rest,Spring Rest,我正在使用@RepositoryRestResource通过spring-data-rest快速公开@Entity对象 问题:是否可以从json响应中禁用任何\u链接 "_links" : { "self" : { "href" : "http://localhost:8080/people{?page,size,sort}", "templated" : true }, "search" : { "href" : "http://

我正在使用
@RepositoryRestResource
通过
spring-data-rest
快速公开
@Entity
对象

问题:是否可以从
json
响应中禁用任何
\u链接

  "_links" : {
    "self" : {
      "href" : "http://localhost:8080/people{?page,size,sort}",
      "templated" : true
    },
    "search" : {
      "href" : "http://localhost:8080/people/search"
    }
  },
  "_embedded" : {
    "persons" : [ {
     [...]

也许您需要扩展
RepositoryRestMvcConfiguration
配置,并查看
jsonSchemaConverter()
-