@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异常进行统一处理
Constructor and Description |
---|
ResultErrorAutoConfig() |
Modifier and Type | Method and Description |
---|---|
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 © 2022 Pivotal Software, Inc.. All rights reserved.