Package org.bremersee.exception
Class RestApiExceptionMapperAutoConfiguration
- java.lang.Object
-
- org.bremersee.exception.RestApiExceptionMapperAutoConfiguration
-
@ConditionalOnWebApplication(type=ANY) @Configuration @EnableConfigurationProperties(RestApiExceptionMapperProperties.class) public class RestApiExceptionMapperAutoConfiguration extends Object
The rest api exception mapper auto configuration.- Author:
- Christian Bremer
-
-
Constructor Summary
Constructors Constructor Description RestApiExceptionMapperAutoConfiguration(String applicationName, RestApiExceptionMapperProperties properties)
Instantiates a new rest api exception mapper auto configuration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
init()
Init.org.bremersee.exception.RestApiExceptionMapper
restApiExceptionMapper()
Builds the rest api exception mapper bean.
-
-
-
Constructor Detail
-
RestApiExceptionMapperAutoConfiguration
public RestApiExceptionMapperAutoConfiguration(@Value("${spring.application.name:application}") String applicationName, RestApiExceptionMapperProperties properties)
Instantiates a new rest api exception mapper auto configuration.- Parameters:
applicationName
- the application nameproperties
- the properties
-
-
Method Detail
-
init
@EventListener(org.springframework.boot.context.event.ApplicationReadyEvent.class) public void init()
Init.
-
restApiExceptionMapper
@Bean public org.bremersee.exception.RestApiExceptionMapper restApiExceptionMapper()
Builds the rest api exception mapper bean.- Returns:
- the rest api exception mapper bean
-
-