com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler Java Examples
The following examples show how to use
com.alibaba.csp.sentinel.adapter.spring.webflux.exception.SentinelBlockExceptionHandler.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: SentinelWebFluxAutoConfiguration.java From spring-cloud-alibaba with Apache License 2.0 | 5 votes |
@Bean @Order(-2) @ConditionalOnProperty(name = "spring.cloud.sentinel.filter.enabled", matchIfMissing = true) public SentinelBlockExceptionHandler sentinelBlockExceptionHandler() { return new SentinelBlockExceptionHandler(viewResolvers, serverCodecConfigurer); }
Example #2
Source File: WebFluxConfig.java From Sentinel-Dashboard-Nacos with Apache License 2.0 | 4 votes |
@Bean @Order(-1) public SentinelBlockExceptionHandler sentinelBlockExceptionHandler() { // Register the block exception handler for Spring WebFlux. return new SentinelBlockExceptionHandler(viewResolvers, serverCodecConfigurer); }
Example #3
Source File: WebFluxTestConfig.java From Sentinel-Dashboard-Nacos with Apache License 2.0 | 4 votes |
@Bean @Order(-1) public SentinelBlockExceptionHandler sentinelBlockExceptionHandler() { // Register the block exception handler for Spring WebFlux. return new SentinelBlockExceptionHandler(viewResolvers, serverCodecConfigurer); }
Example #4
Source File: WebFluxConfig.java From Sentinel with Apache License 2.0 | 4 votes |
@Bean @Order(-1) public SentinelBlockExceptionHandler sentinelBlockExceptionHandler() { // Register the block exception handler for Spring WebFlux. return new SentinelBlockExceptionHandler(viewResolvers, serverCodecConfigurer); }
Example #5
Source File: WebFluxTestConfig.java From Sentinel with Apache License 2.0 | 4 votes |
@Bean @Order(-1) public SentinelBlockExceptionHandler sentinelBlockExceptionHandler() { // Register the block exception handler for Spring WebFlux. return new SentinelBlockExceptionHandler(viewResolvers, serverCodecConfigurer); }