类 ExceptionConfiguration


  • @Component
    @ConfigurationProperties(prefix="spring.rest.advice.exception")
    public class ExceptionConfiguration
    extends java.lang.Object
    异常统一处理配置 spring: rest: advice: exception: code-name: code classes: - name: org.springframework.web.HttpRequestMethodNotSupportedException code: 404 message: 接口不存在 - name: org.springframework.web.bind.MethodArgumentNotValidException code: -2 - name: org.springframework.web.bind.MissingRequestHeaderException code: -2 message: 缺少头部参数 - name: org.springframework.web.method.annotation.MethodArgumentTypeMismatchException code: -2 message: 参数数据类型不匹配 - name: org.springframework.http.converter.HttpMessageNotReadableException code: -2 message: 不能识别的参数 - name: org.springframework.validation.BindException code: -2
    • 方法概要

      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 构造器详细资料

      • ExceptionConfiguration

        public ExceptionConfiguration()