| | |
| | | import org.springframework.cloud.gateway.support.NotFoundException;
|
| | | import org.slf4j.Logger;
|
| | | import org.slf4j.LoggerFactory;
|
| | | import org.springframework.boot.web.reactive.error.ErrorWebExceptionHandler;
|
| | | import org.springframework.context.annotation.Configuration;
|
| | | import org.springframework.core.annotation.Order;
|
| | | import org.springframework.http.server.reactive.ServerHttpResponse;
|
| | | import org.springframework.web.server.ResponseStatusException;
|
| | | import org.springframework.web.server.ServerWebExchange;
|
| | | import org.springframework.web.server.WebExceptionHandler;
|
| | | import com.ruoyi.common.core.utils.ServletUtils;
|
| | | import reactor.core.publisher.Mono;
|
| | |
|
| | |
| | | */
|
| | | @Order(-1)
|
| | | @Configuration
|
| | | public class GatewayExceptionHandler implements ErrorWebExceptionHandler
|
| | | public class GatewayExceptionHandler implements WebExceptionHandler
|
| | | {
|
| | | private static final Logger log = LoggerFactory.getLogger(GatewayExceptionHandler.class);
|
| | |
|