👎 删除dubbo 修复本地域名

This commit is contained in:
2022-12-05 13:30:14 +08:00
parent 3ba933257e
commit 567bda85a6
5 changed files with 113 additions and 114 deletions
@@ -59,12 +59,12 @@
<artifactId>resilience4j-ratelimiter</artifactId>
<scope>provided</scope> <!-- 设置为 provided,主要是 GlobalExceptionHandler 使用 -->
</dependency>
<dependency>
<groupId>org.apache.dubbo</groupId>
<artifactId>dubbo</artifactId>
<version>3.0.9</version>
<scope>compile</scope>
</dependency>
<!-- <dependency>-->
<!-- <groupId>org.apache.dubbo</groupId>-->
<!-- <artifactId>dubbo</artifactId>-->
<!-- <version>3.0.9</version>-->
<!-- <scope>compile</scope>-->
<!-- </dependency>-->
</dependencies>
@@ -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);
}