feat: 拦截器实现/gateway微服务打通

This commit is contained in:
landaiqing
2024-06-02 14:54:37 +08:00
parent bb74574bc3
commit 8f8e8225dd
27 changed files with 235 additions and 1000 deletions

View File

@@ -29,7 +29,7 @@ public class GatewayExceptionHandler implements ErrorWebExceptionHandler {
public Mono<Void> handle(ServerWebExchange serverWebExchange, Throwable throwable) {
ServerHttpRequest request = serverWebExchange.getRequest();
ServerHttpResponse response = serverWebExchange.getResponse();
Integer code=200;
int code=200;
String message="";
if(throwable instanceof SaTokenException){
code=401;