Java 类org.springframework.boot.autoconfigure.web.ErrorProperties 实例源码

项目:role-api    文件:RestfulErrorController.java   
/**
 * Construct the controller with the current server error properties.
 *
 * @param errorProperties Api error properties.
 * @since 1.0.0
 */
@Autowired
public RestfulErrorController(@NotNull ErrorProperties errorProperties, @NotNull List<ErrorHandler> errorHandlers) {
    Assert.notNull(errorProperties, "ErrorProperties must not be null");
    Assert.notNull(errorHandlers, "ErrorHandlers must not be null");
    this.errorProperties = errorProperties;
    this.errorHandlers = errorHandlers;
}
项目:SpringBootStudy    文件:DemoErrorController.java   
/**
 * Determine if the stacktrace attribute should be included.
 *
 * @param request  the source request
 * @param produces the media type produced (or {@code MediaType.ALL})
 * @return if the stacktrace attribute should be included
 */
protected boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) {
    ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace();
    if (include == ErrorProperties.IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:springboot-quick-build    文件:ExceptionController.java   
/**
 * Determine if the stacktrace attribute should be included.
 * 
 * @param request
 *            the source request
 * @param produces
 *            the media type produced (or {@code MediaType.ALL})
 * @return if the stacktrace attribute should be included
 */
protected boolean isIncludeStackTrace(HttpServletRequest request, MediaType produces) {
    ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace();
    if (include == ErrorProperties.IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:spring-boot-sample    文件:ExceptionController.java   
/**
 * Determine if the stacktrace attribute should be included.
 * @param request the source request
 * @param produces the media type produced (or {@code MediaType.ALL})
 * @return if the stacktrace attribute should be included
 */
protected boolean isIncludeStackTrace(HttpServletRequest request,
                                      MediaType produces) {
    ErrorProperties.IncludeStacktrace include = this.serverProperties.getError().getIncludeStacktrace();
    if (include == ErrorProperties.IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == ErrorProperties.IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:crnk-framework    文件:CrnkErrorController.java   
public CrnkErrorController(ErrorAttributes errorAttributes,
        ErrorProperties errorProperties) {
    super(errorAttributes, errorProperties);
}
项目:crnk-framework    文件:CrnkErrorController.java   
public CrnkErrorController(ErrorAttributes errorAttributes,
        ErrorProperties errorProperties,
        List<ErrorViewResolver> errorViewResolvers) {
    super(errorAttributes, errorProperties, errorViewResolvers);
}
项目:spring-mvc-error-handling-example    文件:CustomErrorController.java   
public CustomErrorController(ErrorAttributes errorAttributes,
    ErrorProperties errorProperties) {
  super(errorAttributes, errorProperties);
}
项目:spring-mvc-error-handling-example    文件:CustomErrorController.java   
public CustomErrorController(ErrorAttributes errorAttributes,
    ErrorProperties errorProperties,
    List<ErrorViewResolver> errorViewResolvers) {
  super(errorAttributes, errorProperties, errorViewResolvers);
}
项目:onetwo    文件:DataResultErrorController.java   
public DataResultErrorController(ErrorAttributes errorAttributes, ErrorProperties errorProperties) {
    super(errorAttributes, errorProperties);
}
项目:onetwo    文件:DataResultErrorController.java   
public DataResultErrorController(ErrorAttributes errorAttributes,
        ErrorProperties errorProperties,
        List<ErrorViewResolver> errorViewResolvers) {
    super(errorAttributes, errorProperties, errorViewResolvers);
}
项目:EasyReport    文件:CommonErrorController.java   
public CommonErrorController(final ErrorAttributes errorAttributes,
                             ErrorProperties errorProperties) {
    super(errorAttributes);
    this.errorProperties = errorProperties;
}
项目:EasyReport    文件:CustomErrorController.java   
public CustomErrorController(final ErrorAttributes errorAttributes,
                             final ErrorProperties errorProperties) {
    super(errorAttributes, errorProperties);
}
项目:EasyReport    文件:ServletConfig.java   
@Bean
public ErrorProperties errorProperties() {
    final ErrorProperties properties = new ErrorProperties();
    properties.setIncludeStacktrace(IncludeStacktrace.ALWAYS);
    return properties;
}
项目:spring-cloud-netflix    文件:ZuulProxyTestBase.java   
public MyErrorController(ErrorAttributes errorAttributes) {
    super(errorAttributes, new ErrorProperties());
}
项目:urlaubsverwaltung    文件:ErrorController.java   
@Autowired
public ErrorController(ErrorAttributes errorAttributes) {

    super(errorAttributes, new ErrorProperties());
}
项目:role-api    文件:Application.java   
/**
 * Construct a {@link ErrorProperties} with the current server properties.
 *
 * @param serverProperties Current server properties.
 * @return A singleton {@link ErrorProperties} bean.
 * @since 1.0.0
 */
@Bean
public ErrorProperties errorProperties(ServerProperties serverProperties) {
    return serverProperties.getError();
}