From baace8f53e4a6614f782349168c0b19a0332b38a Mon Sep 17 00:00:00 2001 From: tanghc Date: Tue, 26 Nov 2019 14:47:45 +0800 Subject: [PATCH] 2.5.5 --- .../configuration/GlobalExceptionHandler.java | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/configuration/GlobalExceptionHandler.java b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/configuration/GlobalExceptionHandler.java index f71d991f..9322981a 100644 --- a/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/configuration/GlobalExceptionHandler.java +++ b/sop-common/sop-service-common/src/main/java/com/gitee/sop/servercommon/configuration/GlobalExceptionHandler.java @@ -8,7 +8,6 @@ import com.gitee.sop.servercommon.result.ServiceResultBuilder; import lombok.extern.slf4j.Slf4j; import org.springframework.web.bind.annotation.ControllerAdvice; import org.springframework.web.bind.annotation.ExceptionHandler; -import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.ResponseBody; import javax.servlet.http.HttpServletRequest; @@ -38,13 +37,6 @@ public class GlobalExceptionHandler { */ private static final String X_SERVICE_ERROR_HEADER_NAME = "x-service-error-code"; - @RequestMapping("/error") - @ResponseBody - public Object error(HttpServletRequest request, HttpServletResponse response) { - ServiceResultBuilder serviceResultBuilder = ServiceConfig.getInstance().getServiceResultBuilder(); - return serviceResultBuilder.buildError(request, response, new ServiceException("系统繁忙")); - } - /** * 捕获手动抛出的异常 *