👎 删除dubbo 修复本地域名
This commit is contained in:
+5
-5
@@ -17,7 +17,7 @@ import io.github.resilience4j.ratelimiter.RequestNotPermitted;
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.exception.ExceptionUtils;
|
||||
import org.apache.dubbo.rpc.RpcException;
|
||||
//import org.apache.dubbo.rpc.RpcException;
|
||||
import org.springframework.security.access.AccessDeniedException;
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.validation.BindException;
|
||||
@@ -96,10 +96,10 @@ public class GlobalExceptionHandler {
|
||||
return accessDeniedExceptionHandler(request, (AccessDeniedException) ex);
|
||||
}
|
||||
|
||||
if (ex instanceof RpcException){
|
||||
log.error("dubbo错误", ex);
|
||||
return null;
|
||||
}
|
||||
// if (ex instanceof RpcException){
|
||||
// log.error("dubbo错误", ex);
|
||||
// return null;
|
||||
// }
|
||||
return defaultExceptionHandler(request, ex);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user