@Configuration
@Import(value={ResultExceptionHandler.class,ResultResponseBodyHandler.class})
@AutoConfigureBefore(value=org.springframework.boot.autoconfigure.web.servlet.error.ErrorMvcAutoConfiguration.class)
@EnableConfigurationProperties(value=org.springframework.boot.autoconfigure.web.ServerProperties.class)
public class ResultErrorAutoConfig
extends Object
实现对Filter异常进行统一处理
| 构造器和说明 |
|---|
ResultErrorAutoConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
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)
|
@Bean public org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController basicErrorController(org.springframework.boot.web.servlet.error.ErrorAttributes errorAttributes)
Copyright © 2021. All rights reserved.