REQ-2010: 尝试解决pre环境的异常问题

This commit is contained in:
yanglin 2024-03-04 16:03:31 +08:00
parent 389f50b82d
commit 06130725e3

View File

@ -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);