类 ResultErrorAutoConfig


  • @Configuration
    @Import({ResultExceptionHandler.class,ResultResponseBodyHandler.class})
    @AutoConfigureBefore(org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class)
    @EnableConfigurationProperties(org.springframework.boot.autoconfigure.web.ServerProperties.class)
    public class ResultErrorAutoConfig
    extends Object
    全局错误拦截自动配置

    实现对Filter异常进行统一处理

    从以下版本开始:
    2020年9月16日
    作者:
    ylyue
    • 构造器详细资料

      • ResultErrorAutoConfig

        public ResultErrorAutoConfig()
    • 方法详细资料

      • basicErrorController

        @Bean
        public org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController basicErrorController​(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
        优先级高于 ErrorMvcAutoConfiguration.basicErrorController(ErrorAttributes, org.springframework.beans.factory.ObjectProvider)