Class RestApiExceptionMapperAutoConfiguration


  • @ConditionalOnWebApplication(type=ANY)
    @Configuration
    @EnableConfigurationProperties(RestApiExceptionMapperProperties.class)
    public class RestApiExceptionMapperAutoConfiguration
    extends Object
    The rest api exception mapper auto configuration.
    Author:
    Christian Bremer
    • 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 name
        properties - 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