👎 删除dubbo 修复本地域名
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
+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