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

项目:https-github.com-g0t4-jenkins2-course-spring-boot    文件:BasicErrorController.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) {
    IncludeStacktrace include = getErrorProperties().getIncludeStacktrace();
    if (include == IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:spring-boot-concourse    文件:BasicErrorController.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) {
    IncludeStacktrace include = getErrorProperties().getIncludeStacktrace();
    if (include == IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:contestparser    文件:BasicErrorController.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) {
    IncludeStacktrace include = getErrorProperties().getIncludeStacktrace();
    if (include == IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:EasyReport    文件:CommonErrorController.java   
protected boolean isIncludeStackTrace(HttpServletRequest request) {
    IncludeStacktrace include = this.errorProperties.getIncludeStacktrace();
    if (include == IncludeStacktrace.ALWAYS) {
        return true;
    }
    if (include == IncludeStacktrace.ON_TRACE_PARAM) {
        return getTraceParameter(request);
    }
    return false;
}
项目:EasyReport    文件:ServletConfig.java   
@Bean
public ErrorProperties errorProperties() {
    final ErrorProperties properties = new ErrorProperties();
    properties.setIncludeStacktrace(IncludeStacktrace.ALWAYS);
    return properties;
}