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()
-