上一页 1 2 3 4 5 6 7 8 9 ··· 97 下一页
摘要: class V { public virtual void Run() { Console.WriteLine("V Run"); } } class Car:V { public override void Run() { Console.WriteLine("Car Run"); } } 阅读全文
posted @ 2025-06-13 13:53 市丸银 阅读(6) 评论(0) 推荐(0)
摘要: 一、委托 1、Action new Action(方法); 委派:无返回值 2、FunC 委派:有返回值 new Func<参数类型和返回值类型>(方法); using Mysqlx.Notice; using System; using System.Collections.Generic; us 阅读全文
posted @ 2025-06-13 09:52 市丸银 阅读(8) 评论(0) 推荐(0)
摘要: 一、输出参数(out) string a = "10"; int.TryParse(a, out int c) 二、数组参数(params) (params int[] intArray) 阅读全文
posted @ 2025-06-13 09:03 市丸银 阅读(16) 评论(0) 推荐(0)
摘要: 1、特点:传参会改变原值 2、格式:(ref int x, ref int y) static void Main(string[] args) { int a = 10; int b = 20; Add(ref a, ref b); Console.WriteLine("A:{0}", a); C 阅读全文
posted @ 2025-06-13 08:40 市丸银 阅读(5) 评论(0) 推荐(0)
摘要: 一、全属性 propfull + Tab +Tab 可以修改类型、属性名、字段名(首字母大写) 二、简易属性 prop Tab Tab 可以修改类型和字段名(首字母大写) 阅读全文
posted @ 2025-06-12 23:22 市丸银 阅读(42) 评论(0) 推荐(0)
摘要: 一、工作原理 1、断路器状态 关闭(通)、打开(断)、半开 阅读全文
posted @ 2025-06-11 22:28 市丸银 阅读(11) 评论(0) 推荐(0)
摘要: 一、流控模式 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 市丸银 阅读(7) 评论(0) 推荐(0)
摘要: 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 市丸银 阅读(54) 评论(0) 推荐(0)
摘要: 1、过程 若SentinelRescourse中有 blockHandler,则调用blockHandler指定的方法进行兜底回调 否则进行全局异常处理 2、blockHandler 指定兜底回调方法 @SentinelResource(value = "createOrder", blockHan 阅读全文
posted @ 2025-06-10 23:35 市丸银 阅读(24) 评论(0) 推荐(0)
摘要: 1、创建类异常处理类,实现BlockExceptionHandler exception.MyBlockExceptionHandler 2、使用 @Component 注入 3、在model模块创建返回结果类 common.R package com.wt.common; import lombo 阅读全文
posted @ 2025-06-10 22:50 市丸银 阅读(19) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 97 下一页