当前位置:网站首页>Sentinel link mode flow control failure solution
Sentinel link mode flow control failure solution
2022-07-23 23:56:00 【00 rounds II】
Depend on the introduction of :
<!--SpringCloud Alibaba sentinel-datasource-nacos For subsequent persistence -->
<dependency>
<groupId>com.alibaba.csp</groupId>
<artifactId>sentinel-datasource-nacos</artifactId>
</dependency>
<!--SpringCloud Alibaba sentinel -->
<dependency>
<groupId>com.alibaba.cloud</groupId>
<artifactId>spring-cloud-starter-alibaba-sentinel</artifactId>
</dependency>my yml To configure :
spring:
application:
name: nacos-provider
cloud:
nacos:
discovery:
server-addr: 192.168.220.220:8847
config:
server-addr: 192.168.220.220:8847
file-extension: yaml
group: SAP_GROUP
namespace: 66a581a0-6a33-4b96-b117-e1bdc0421d85
sentinel:
transport:
port: 8719
dashboard: 192.168.220.221:8080
web-context-unify: falseControl layer :
@GetMapping(value = "/paymentA")
public String getPayment2() {
return paymentService.payment();
}
@GetMapping(value = "/paymentB")
public String getPayment3() {
return paymentService.payment();
}service layer :
@Service
public class PaymentService {
@SentinelResource(value = "payment", blockHandler = "fallback")
public String payment() {
return "toPayment";
}
public String fallback(BlockException ex){
return "ex";
}
}I am here yml Add configuration in web-context-unify: false after , Link mode effective
Screenshot of the cluster point link after it takes effect :

边栏推荐
- solo 文章标题会过滤掉部分标签
- Browser cannot access Minio
- 单目标追踪——【相关滤波】MOSSE:Visual Object Tracking using Adaptive Correlation Filters
- Beijing University qingniaochangping Campus: how about the current situation of operation and maintenance employment? Are skills required?
- jarvisoj_level2
- Tool recommendation - YuQue
- String function 1 of C language
- Federation of DGS
- iptables防止nmap扫描以及binlog
- 力扣刷题训练之超简单
猜你喜欢
![[microservice Architecture] distributed transactions](/img/3b/f35f060e146858e40ce8a5e0d1a154.png)
[microservice Architecture] distributed transactions

DDD thinking structure learning

第五章、实现Web适配器
![[ssm] joint commissioning of front and rear console protocols ②](/img/ed/6a42e19f384fa0d4a039e52f5a95f4.png)
[ssm] joint commissioning of front and rear console protocols ②

【计算机三级信息安全】访问控制模型

【细节】radio 标签 ,更换 默认选中的背景色

太空射击第08课: 改进的碰撞

473-82(40、662、31、98、189)

bjdctf_ 2020_ babystack

y75.第四章 Prometheus大厂监控体系及实战 -- prometheus报警设置(六)
随机推荐
PyTorch 中遇到的问题
[for loop if conditional statement] summary
[Fifth space 2019 finals]pwn5
最长递增子序列变种[深刻理解最长递增序列]
473-82(40、662、31、98、189)
ciscn_ 2019_ c_ one
STM32 can initialization details
STM32 CAN初始化详解
pwn1_ sctf_ two thousand and sixteen
bjdctf_2020_babystack
Everything you need to know about parsing JSON with Jackson
深度学习之 9 前馈神经网络 基本概念
Splicing of.Net distribution with outlook mail format and table
How to open an account and buy financial products with 6% income?
Browser cannot access Minio
正则表达式及绕过案例
What is restful verb
第五章、实现Web适配器
链表——707. 设计链表
Tree DP