@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnMissingBean(value=org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class) @ConditionalOnClass(value=org.springframework.data.rest.webmvc.config.RepositoryRestMvcConfiguration.class) @AutoConfigureAfter(value={HttpMessageConvertersAutoConfiguration.class,JacksonAutoConfiguration.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() |
@Bean public org.springframework.boot.autoconfigure.data.rest.SpringBootRepositoryRestConfigurer springBootRepositoryRestConfigurer()
Copyright © 2021 Pivotal Software, Inc.. All rights reserved.