注释有问题的代码
This commit is contained in:
+4
-4
@@ -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 {
|
|||||||
/**
|
/**
|
||||||
* 限流、熔断统一处理类
|
* 限流、熔断统一处理类
|
||||||
*/
|
*/
|
||||||
@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());
|
||||||
|
|||||||
Reference in New Issue
Block a user