Update and rename 67.10 Expose Spring Data repositories as REST endpoint.md to 67.10. Expose Spring Data repositories as REST endpoint.md

master
qibaoguang 2015-04-02 13:12:56 +08:00
parent b3fea429fb
commit 047ea01f47
2 changed files with 5 additions and 1 deletions

View File

@ -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.*`属性。