Class RestApiExceptionMapperForWebFluxAutoConfiguration
java.lang.Object
org.bremersee.exception.spring.boot.autoconfigure.reactive.RestApiExceptionMapperForWebFluxAutoConfiguration
@ConditionalOnWebApplication(type=REACTIVE)
@ConditionalOnClass(name={"com.fasterxml.jackson.databind.ObjectMapper","org.bremersee.exception.RestApiExceptionMapperProperties"})
@AutoConfiguration
@EnableConfigurationProperties(RestApiExceptionMapperBootProperties.class)
public class RestApiExceptionMapperForWebFluxAutoConfiguration
extends Object
The rest api exception mapper autoconfiguration.
- Author:
- Christian Bremer
-
Constructor Summary
ConstructorDescriptionRestApiExceptionMapperForWebFluxAutoConfiguration
(String applicationName, RestApiExceptionMapperBootProperties properties) Instantiates a new rest api exception mapper autoconfiguration. -
Method Summary
-
Constructor Details
-
RestApiExceptionMapperForWebFluxAutoConfiguration
public RestApiExceptionMapperForWebFluxAutoConfiguration(@Value("${spring.application.name:application}") String applicationName, RestApiExceptionMapperBootProperties properties) Instantiates a new rest api exception mapper autoconfiguration.- Parameters:
applicationName
- the application nameproperties
- the properties
-
-
Method Details
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()Init. -
restApiExceptionMapper
Builds the rest api exception mapper bean.- Returns:
- the rest api exception mapper bean
-