|
|
@@ -7,9 +7,6 @@ import com.mrxu.framework.common.util.BusinessException;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
-import org.springframework.core.Ordered;
|
|
|
-import org.springframework.core.annotation.Order;
|
|
|
import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.validation.BindingResult;
|
|
|
import org.springframework.web.bind.MethodArgumentNotValidException;
|
|
|
@@ -59,7 +56,7 @@ public class FeignProviderExceptionHandler {
|
|
|
return rendError(true,BaseCode.ERR_PARAMS_MISS);
|
|
|
}
|
|
|
log.error("系统错误:{}",e.getMessage(), e);
|
|
|
- return rendError(false,BaseCode.ERROR);
|
|
|
+ return rendError(false,new BaseCode(BaseCode.ERROR.code,e.getMessage()));
|
|
|
}
|
|
|
|
|
|
public Object rendError(boolean isBusinessException,BaseCode code) {
|