Update and rename 67.10 Expose Spring Data repositories as REST endpoint.md to 67.10. Expose Spring Data repositories as REST endpoint.md
parent
b3fea429fb
commit
047ea01f47
|
@ -1 +0,0 @@
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
### 67.10. 将Spring Data仓库暴露为REST端点
|
||||||
|
|
||||||
|
Spring Data REST能够将Repository的实现暴露为REST端点,只要该应用启用Spring MVC。
|
||||||
|
|
||||||
|
Spring Boot暴露一系列来自`spring.data.rest`命名空间的有用属性来定制化[RepositoryRestConfiguration](http://docs.spring.io/spring-data/rest/docs/current/api/org/springframework/data/rest/core/config/RepositoryRestConfiguration.html)。如果需要提供其他定制,你可以创建一个继承自SpringBootRepositoryRestMvcConfiguration的`@Configuration`类。该类功能和RepositoryRestMvcConfiguration相同,但允许你继续使用`spring.data.rest.*`属性。
|
Loading…
Reference in New Issue