摘要: 分别为 平均算法 、权重、轮询 /// <summary> /// 平均 /// </summary> /// <returns></returns> protected override int GetIndex() { //直接使用random会因为种子的问题使查询很有可能一致,所以增加 iTo 阅读全文
posted @ 2022-01-16 19:54 YZM_Leo 阅读(64) 评论(0) 推荐(0)
摘要: services.AddSwaggerGen(c => { c.SwaggerDoc("v1", new OpenApiInfo { Title = "SwaggerDemo", Version = "v1" }); #region 为Swagger JSON and UI设置xml文档注释路径 s 阅读全文
posted @ 2022-01-09 22:23 YZM_Leo 阅读(79) 评论(0) 推荐(0)
摘要: https://www.pianshen.com/article/16151114594/ 阅读全文
posted @ 2021-12-19 22:10 YZM_Leo 阅读(640) 评论(0) 推荐(0)
摘要: my.cnf; 查找my.cnf方法 使用find 命令, find / -name 查找文件名称 在[mysqld]节点下 如果没有添加该节点 并加入 lower_case_table_names=1 阅读全文
posted @ 2021-11-11 10:28 YZM_Leo 阅读(72) 评论(0) 推荐(0)
摘要: https://www.kuangstudy.com/bbs/1450464478264135682 阅读全文
posted @ 2021-10-28 22:17 YZM_Leo 阅读(25) 评论(0) 推荐(1)
摘要: IOC--控制反转 =》 目的 DI--依赖注入 =》过程 通过反射的形式将所有需要的对象展示出来 一般情况全局注册随用随取 Unity实例 1,实例Untiy 容器 2 注册类型 3 获取实例 1 //IUnityContainer container = new UnityContainer() 阅读全文
posted @ 2021-03-04 22:43 YZM_Leo 阅读(98) 评论(0) 推荐(1)
摘要: Unity容器 文件配置读取信息 ExeConfigurationFileMap fileMap = new ExeConfigurationFileMap(); fileMap.ExeConfigFilename = Path.Combine(AppDomain.CurrentDomain.Bas 阅读全文
posted @ 2021-03-04 22:34 YZM_Leo 阅读(89) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/cndarren/p/12228426.html 阅读全文
posted @ 2021-03-03 14:10 YZM_Leo 阅读(125) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.IO; 4 using System.Net; 5 using System.Net.Http; 6 using System.Text; 7 using Micro 阅读全文
posted @ 2021-03-03 13:59 YZM_Leo 阅读(527) 评论(0) 推荐(0)
摘要: 上级发政策 services.AddCors(a=>a.AddPolicy("any", configurePolicy=> configurePolicy.AllowAnyOrigin().AllowAnyMethod().AllowAnyHeader())); 1 // This method 阅读全文
posted @ 2021-01-19 09:38 YZM_Leo 阅读(169) 评论(0) 推荐(0)