From b806906cd8ce123fece23cc2c0cbd996bd5e5305 Mon Sep 17 00:00:00 2001 From: zlt2000 Date: Sun, 19 Apr 2020 09:45:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8A=E6=9C=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../central/sentinel/config/SentinelAutoConfigure.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zlt-commons/zlt-sentinel-spring-boot-starter/src/main/java/com/central/sentinel/config/SentinelAutoConfigure.java b/zlt-commons/zlt-sentinel-spring-boot-starter/src/main/java/com/central/sentinel/config/SentinelAutoConfigure.java index 3c5810f..967b398 100644 --- a/zlt-commons/zlt-sentinel-spring-boot-starter/src/main/java/com/central/sentinel/config/SentinelAutoConfigure.java +++ b/zlt-commons/zlt-sentinel-spring-boot-starter/src/main/java/com/central/sentinel/config/SentinelAutoConfigure.java @@ -28,8 +28,8 @@ public class SentinelAutoConfigure { /** * 限流、熔断统一处理类 */ - @Configuration - @ConditionalOnClass(HttpServletRequest.class) + /*@Configuration + @ConditionalOnClass(HttpServletRequest.class)*/ public static class WebmvcHandler { public WebmvcHandler(SentinelWebMvcConfig config) { config.setBlockExceptionHandler(webmvcBlockExceptionHandler()); @@ -48,8 +48,8 @@ public class SentinelAutoConfigure { /** * 限流、熔断统一处理类 */ - @Configuration - @ConditionalOnClass(ServerResponse.class) + /*@Configuration + @ConditionalOnClass(ServerResponse.class)*/ public static class WebfluxHandler { public WebfluxHandler() { WebFluxCallbackManager.setBlockHandler(webfluxBlockExceptionHandler()); -- GitLab