会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
市丸银
知行合一
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
8
9
10
···
98
下一页
2025年6月12日
C# 属性声明 快捷方式
摘要: 一、全属性 propfull + Tab +Tab 可以修改类型、属性名、字段名(首字母大写) 二、简易属性 prop Tab Tab 可以修改类型和字段名(首字母大写)
阅读全文
posted @ 2025-06-12 23:22 市丸银
阅读(75)
评论(0)
推荐(0)
2025年6月11日
sentinel 熔断规则
摘要: 一、工作原理 1、断路器状态 关闭(通)、打开(断)、半开
阅读全文
posted @ 2025-06-11 22:28 市丸银
阅读(29)
评论(0)
推荐(0)
sentinel 流控规则 流控模式 流控效果
摘要: 一、流控模式 1、直接 2、链路 a、yaml文件,开启链路 spring: cloud: sentinel: web-context-unify: false b、创建kill api @GetMapping("kill") public Order killOrder(@RequestParam
阅读全文
posted @ 2025-06-11 22:06 市丸银
阅读(40)
评论(0)
推荐(0)
2025年6月10日
sentinel openFeign 异常处理
摘要: 1、过程 若 openFeign 有fallback,则走fallback的兜底回调,否则走全局异常处理 2、fallbcak指定的是类 3、openfeign的客户端 package com.wt.order.feign; import com.wt.order.feign.fallback.Pr
阅读全文
posted @ 2025-06-10 23:39 市丸银
阅读(85)
评论(0)
推荐(0)
sentinel @SentinelResource 异常处理
摘要: 1、过程 若SentinelRescourse中有 blockHandler,则调用blockHandler指定的方法进行兜底回调 否则进行全局异常处理 2、blockHandler 指定兜底回调方法 @SentinelResource(value = "createOrder", blockHan
阅读全文
posted @ 2025-06-10 23:35 市丸银
阅读(50)
评论(0)
推荐(0)
sentinel web接口异常处理
摘要: 1、创建类异常处理类,实现BlockExceptionHandler exception.MyBlockExceptionHandler 2、使用 @Component 注入 3、在model模块创建返回结果类 common.R package com.wt.common; import lombo
阅读全文
posted @ 2025-06-10 22:50 市丸银
阅读(35)
评论(0)
推荐(0)
sentinel 整合
摘要: 一、环境 1、引入依赖 <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifactId> </dependency> 2、配置yaml sp
阅读全文
posted @ 2025-06-10 22:16 市丸银
阅读(27)
评论(0)
推荐(0)
springboot vue 分页查询 request请求
摘要: export const getConsumablesInfoReq = (current, size, queryVo) => { return request({ url:'/api/manage/list', method:'get', params:{ current, size, ...q
阅读全文
posted @ 2025-06-10 09:40 市丸银
阅读(17)
评论(0)
推荐(0)
2025年6月9日
Sentinel 初认识
摘要: 一、功能 服务保护(限流、熔断降级) 二、资源和规则 1、定义资源 a、自动适配(Web Servlet、Dubbo、Spring Cloud、gRPC、Spring WebFlux、Reactor) ,所有web接口 b、编程式:SphU API c、声明式:@SentinelResource 三
阅读全文
posted @ 2025-06-09 22:00 市丸银
阅读(23)
评论(0)
推荐(0)
OpenFeign fallback 兜底返回
摘要: 一、场景 远程调用出错,有兜底返回值 二、环境搭建 1、引入依赖 Sentinel <dependency> <groupId>com.alibaba.cloud</groupId> <artifactId>spring-cloud-starter-alibaba-sentinel</artifac
阅读全文
posted @ 2025-06-09 21:34 市丸银
阅读(143)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
10
···
98
下一页
公告