REQ-2010: 尝试解决pre环境的异常问题
This commit is contained in:
parent
389f50b82d
commit
06130725e3
@ -3,6 +3,8 @@ package cn.axzo.msg.center.http;
|
||||
import cn.axzo.basics.common.exception.ServiceException;
|
||||
import cn.azxo.framework.common.model.CommonResponse;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.core.Ordered;
|
||||
import org.springframework.core.annotation.Order;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
import org.springframework.validation.BindException;
|
||||
import org.springframework.validation.ObjectError;
|
||||
@ -18,6 +20,7 @@ import java.util.List;
|
||||
@RestControllerAdvice
|
||||
public class ControllerExceptionAdvice {
|
||||
|
||||
@Order(Ordered.HIGHEST_PRECEDENCE)
|
||||
@ExceptionHandler(value = ServiceException.class)
|
||||
public CommonResponse<?> bizException(ServiceException e){
|
||||
log.warn("ControllerExceptionHandler.bizException Exception", e);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user