Skip to content

Commit 7943195

Browse files
committed
Rename RepositoryRestMvcBootConfiguration
Rename RepositoryRestMvcBootConfiguration to SpringBootRepositoryRestMvcConfiguration so that it follows the same naming pattern as other custom Spring Boot configurations. See gh-2392
1 parent 56e31a8 commit 7943195

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/data/rest/RepositoryRestMvcAutoConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
@ConditionalOnMissingBean(RepositoryRestMvcConfiguration.class)
4747
@ConditionalOnClass(RepositoryRestMvcConfiguration.class)
4848
@AutoConfigureAfter(HttpMessageConvertersAutoConfiguration.class)
49-
@Import(RepositoryRestMvcBootConfiguration.class)
49+
@Import(SpringBootRepositoryRestMvcConfiguration.class)
5050
public class RepositoryRestMvcAutoConfiguration {
5151

5252
}
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
* @since 1.2.2
3838
*/
3939
@Configuration
40-
public class RepositoryRestMvcBootConfiguration extends RepositoryRestMvcConfiguration {
40+
public class SpringBootRepositoryRestMvcConfiguration extends
41+
RepositoryRestMvcConfiguration {
4142

4243
@Autowired(required = false)
4344
private Jackson2ObjectMapperBuilder objectMapperBuilder;

spring-boot-autoconfigure/src/test/java/org/springframework/boot/autoconfigure/data/rest/RepositoryRestMvcAutoConfigurationTests.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ protected static class TestConfigurationWithRestMvcConfig {
143143

144144
}
145145

146-
@Import({ TestConfiguration.class, RepositoryRestMvcBootConfiguration.class })
146+
@Import({ TestConfiguration.class, SpringBootRepositoryRestMvcConfiguration.class })
147147
protected static class TestConfigurationWithRestMvcBootConfig {
148148

149149
}

spring-boot-docs/src/main/asciidoc/howto.adoc

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1486,16 +1486,15 @@ respectively.
14861486

14871487
[[howto-use-exposing-spring-data-repositories-rest-endpoint]]
14881488
=== Expose Spring Data repositories as REST endpoint
1489-
14901489
Spring Data REST can expose the `Repository` implementations as REST endpoints for you as
14911490
long as Spring MVC has been enabled for the application.
14921491

14931492
Spring Boot exposes as set of useful properties from the `spring.data.rest` namespace that
1494-
customize the
1495-
{spring-data-rest-javadoc}/core/config/RepositoryRestConfiguration.{dc-ext}[`RepositoryRestConfiguration`].
1496-
If your application requires to define its own `RepositoryRestMvcConfiguration` consider
1497-
extending from `RepositoryRestMvcBootConfiguration` instead as the latter provides namely
1498-
the handling of `spring.data.rest` properties.
1493+
customize the {spring-data-rest-javadoc}/core/config/RepositoryRestConfiguration.{dc-ext}[`RepositoryRestConfiguration`].
1494+
If you need to provide additional customization, you can create a `@Configuration` class
1495+
that extends `SpringBootRepositoryRestMvcConfiguration`. This class supports the same
1496+
functionality as `RepositoryRestMvcConfiguration`, but allows you to continue using
1497+
`spring.data.rest.*` properties.
14991498

15001499

15011500

0 commit comments

Comments
 (0)