Class DefaultWebClientErrorDecoderAutoConfiguration
java.lang.Object
org.bremersee.exception.spring.boot.autoconfigure.reactive.DefaultWebClientErrorDecoderAutoConfiguration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(name={"com.fasterxml.jackson.databind.ObjectMapper","org.bremersee.exception.webclient.DefaultWebClientErrorDecoder"})
@AutoConfigureAfter(RestApiExceptionParserForWebFluxAutoConfiguration.class)
@AutoConfiguration
public class DefaultWebClientErrorDecoderAutoConfiguration
extends Object
The default web client error decoder auto configuration.
- Author:
- Christian Bremer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefaultWebClientErrorDecoder
(org.springframework.beans.factory.ObjectProvider<RestApiExceptionParser> restApiExceptionParser) Default web client error decoder default web client error decoder.void
init()
Init.
-
Constructor Details
-
DefaultWebClientErrorDecoderAutoConfiguration
public DefaultWebClientErrorDecoderAutoConfiguration()
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Init. -
defaultWebClientErrorDecoder
@ConditionalOnMissingBean @Bean public DefaultWebClientErrorDecoder defaultWebClientErrorDecoder(org.springframework.beans.factory.ObjectProvider<RestApiExceptionParser> restApiExceptionParser) Default web client error decoder default web client error decoder.- Parameters:
restApiExceptionParser
- the rest api exception parser- Returns:
- the default web client error decoder
-