Class SpringDataWebAutoConfiguration
- java.lang.Object
- org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
@Configuration @ConditionalOnWebApplication(type=SERVLET) @ConditionalOnClass({org.springframework.data.web.PageableHandlerMethodArgumentResolver.class,org.springframework.web.servlet.config.annotation.WebMvcConfigurer.class}) @ConditionalOnMissingBean(org.springframework.data.web.PageableHandlerMethodArgumentResolver.class) @EnableConfigurationProperties(SpringDataWebProperties.class) @AutoConfigureAfter(RepositoryRestMvcAutoConfiguration.class) public class SpringDataWebAutoConfiguration extends Object
Auto-configuration
for Spring Data's web support.When in effect, the auto-configuration is the equivalent of enabling Spring Data's web support through the
EnableSpringDataWebSupport
annotation.- Since:
- 1.2.0
Constructor Summary
Constructors Constructor Description SpringDataWebAutoConfiguration(SpringDataWebProperties properties)
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.web.config.PageableHandlerMethodArgumentResolverCustomizer
pageableCustomizer()
org.springframework.data.web.config.SortHandlerMethodArgumentResolverCustomizer
sortCustomizer()
Constructor Detail
SpringDataWebAutoConfiguration
public SpringDataWebAutoConfiguration(SpringDataWebProperties properties)
Method Detail
pageableCustomizer
@Bean @ConditionalOnMissingBean public org.springframework.data.web.config.PageableHandlerMethodArgumentResolverCustomizer pageableCustomizer()
sortCustomizer
@Bean @ConditionalOnMissingBean public org.springframework.data.web.config.SortHandlerMethodArgumentResolverCustomizer sortCustomizer()