Class RepositoryRestMvcAutoConfiguration
java.lang.Object
org.springframework.boot.autoconfigure.data.rest.RepositoryRestMvcAutoConfiguration
@AutoConfiguration(after={HttpMessageConvertersAutoConfiguration.class,JacksonAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@ConditionalOnMissingBean(org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class)
@ConditionalOnClass(org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class)
@EnableConfigurationProperties(RepositoryRestProperties.class)
@Import(org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class)
public class RepositoryRestMvcAutoConfiguration
extends Object
Auto-configuration
for Spring Data Rest's MVC
integration.
Activates when the application is a web application and no
RepositoryRestMvcConfiguration
is found.
Once in effect, the auto-configuration allows to configure any property of
RepositoryRestConfiguration
using the spring.data.rest
prefix.
- Since:
- 1.1.0
- Author:
- Rob Winch, Stephane Nicoll, Andy Wilkinson
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.boot.autoconfigure.data.rest.SpringBootRepositoryRestConfigurer
springBootRepositoryRestConfigurer
(ObjectProvider<Jackson2ObjectMapperBuilder> objectMapperBuilder, RepositoryRestProperties properties)
-
Constructor Details
-
RepositoryRestMvcAutoConfiguration
public RepositoryRestMvcAutoConfiguration()
-
-
Method Details
-
springBootRepositoryRestConfigurer
@Bean public org.springframework.boot.autoconfigure.data.rest.SpringBootRepositoryRestConfigurer springBootRepositoryRestConfigurer(ObjectProvider<Jackson2ObjectMapperBuilder> objectMapperBuilder, RepositoryRestProperties properties)
-