@AutoConfiguration(after={HttpMessageConvertersAutoConfiguration.class,JacksonAutoConfiguration.class}) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnMissingBean(value=org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class) @ConditionalOnClass(value=org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class) @EnableConfigurationProperties(value=RepositoryRestProperties.class) @Import(value=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.
Constructor and Description |
---|
RepositoryRestMvcAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.boot.autoconfigure.data.rest.SpringBootRepositoryRestConfigurer |
springBootRepositoryRestConfigurer(ObjectProvider<Jackson2ObjectMapperBuilder> objectMapperBuilder,
RepositoryRestProperties properties) |
@Bean public org.springframework.boot.autoconfigure.data.rest.SpringBootRepositoryRestConfigurer springBootRepositoryRestConfigurer(ObjectProvider<Jackson2ObjectMapperBuilder> objectMapperBuilder, RepositoryRestProperties properties)