mirror of
https://gitee.com/durcframework/SOP.git
synced 2025-08-11 21:57:56 +08:00
2.5.5
This commit is contained in:
@@ -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("系统繁忙"));
|
||||
}
|
||||
|
||||
/**
|
||||
* 捕获手动抛出的异常
|
||||
*
|
||||
|
Reference in New Issue
Block a user