提交 545fb27c 编写于 作者: zlt2000's avatar zlt2000

注释有问题的代码

上级 55b68979
...@@ -28,8 +28,8 @@ public class SentinelAutoConfigure { ...@@ -28,8 +28,8 @@ public class SentinelAutoConfigure {
/** /**
* 限流、熔断统一处理类 * 限流、熔断统一处理类
*/ */
@Configuration /*@Configuration
@ConditionalOnClass(HttpServletRequest.class) @ConditionalOnClass(HttpServletRequest.class)*/
public static class WebmvcHandler { public static class WebmvcHandler {
public WebmvcHandler(SentinelWebMvcConfig config) { public WebmvcHandler(SentinelWebMvcConfig config) {
config.setBlockExceptionHandler(webmvcBlockExceptionHandler()); config.setBlockExceptionHandler(webmvcBlockExceptionHandler());
...@@ -48,8 +48,8 @@ public class SentinelAutoConfigure { ...@@ -48,8 +48,8 @@ public class SentinelAutoConfigure {
/** /**
* 限流、熔断统一处理类 * 限流、熔断统一处理类
*/ */
@Configuration /*@Configuration
@ConditionalOnClass(ServerResponse.class) @ConditionalOnClass(ServerResponse.class)*/
public static class WebfluxHandler { public static class WebfluxHandler {
public WebfluxHandler() { public WebfluxHandler() {
WebFluxCallbackManager.setBlockHandler(webfluxBlockExceptionHandler()); WebFluxCallbackManager.setBlockHandler(webfluxBlockExceptionHandler());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册