From 047ea01f476035e69b427f61ab70d9975c23a49f Mon Sep 17 00:00:00 2001 From: qibaoguang Date: Thu, 2 Apr 2015 13:12:56 +0800 Subject: [PATCH] Update and rename 67.10 Expose Spring Data repositories as REST endpoint.md to 67.10. Expose Spring Data repositories as REST endpoint.md --- .../67.10 Expose Spring Data repositories as REST endpoint.md | 1 - .../67.10. Expose Spring Data repositories as REST endpoint.md | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) delete mode 100644 IX. ‘How-to’ guides/67.10 Expose Spring Data repositories as REST endpoint.md create mode 100644 IX. ‘How-to’ guides/67.10. Expose Spring Data repositories as REST endpoint.md diff --git a/IX. ‘How-to’ guides/67.10 Expose Spring Data repositories as REST endpoint.md b/IX. ‘How-to’ guides/67.10 Expose Spring Data repositories as REST endpoint.md deleted file mode 100644 index 8b13789..0000000 --- a/IX. ‘How-to’ guides/67.10 Expose Spring Data repositories as REST endpoint.md +++ /dev/null @@ -1 +0,0 @@ - diff --git a/IX. ‘How-to’ guides/67.10. Expose Spring Data repositories as REST endpoint.md b/IX. ‘How-to’ guides/67.10. Expose Spring Data repositories as REST endpoint.md new file mode 100644 index 0000000..4bafdc9 --- /dev/null +++ b/IX. ‘How-to’ guides/67.10. Expose Spring Data repositories as REST endpoint.md @@ -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.*`属性。