public interface RepositoryRestConfigurer
static RepositoryRestConfigurer withConfig(Consumer<RepositoryRestConfiguration> consumer)
RepositoryRestConfigurer
instances that solely want to tweak the
RepositoryRestConfiguration
.consumer
- must not be null.static RepositoryRestConfigurer withConfig(BiConsumer<RepositoryRestConfiguration,CorsRegistry> consumer)
RepositoryRestConfigurer
instances that solely want to tweak the
RepositoryRestConfiguration
.consumer
- must not be null.@Deprecated default void configureRepositoryRestConfiguration(RepositoryRestConfiguration config)
configureRepositoryRestConfiguration(RepositoryRestConfiguration, CorsRegistry)
instead.config
- Main configuration bean.default void configureRepositoryRestConfiguration(RepositoryRestConfiguration config, CorsRegistry cors)
config
- Main configuration bean.cors
- CORS configuration.default void configureConversionService(ConfigurableConversionService conversionService)
conversionService
- Default ConversionService bean.default void configureValidatingRepositoryEventListener(ValidatingRepositoryEventListener validatingListener)
validatingListener
- The ApplicationListener
responsible for invoking
Validator
instances.default void configureExceptionHandlerExceptionResolver(ExceptionHandlerExceptionResolver exceptionResolver)
ExceptionHandlerExceptionResolver
.exceptionResolver
- The default exception resolver on which you can add custom argument resolvers.default void configureHttpMessageConverters(List<HttpMessageConverter<?>> messageConverters)
HttpMessageConverter
s by adding your own.messageConverters
- The converters to be used by the system.default void configureJacksonObjectMapper(com.fasterxml.jackson.databind.ObjectMapper objectMapper)
ObjectMapper
directly.objectMapper
- The ObjectMapper to be used by the system.Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.