摘要: 先下载Consul打开cmd consul.exe agent -dev运行可以在环境变量 PATH下添加当前Consul.exe 路径 全局使用下面试启动ok界面,然后通过 localhost:8500 看到界面了 然后创建两个 api 程序,添加如下代码, [HttpGet("start")] 阅读全文
posted @ 2023-09-16 16:06 孤海飞雁 阅读(121) 评论(0) 推荐(0)
摘要: An error occurred while processing your request. Request ID: 00-613112becd7848f0226b77690eb71d00-3769cb0d7144d878-00 Development Mode Swapping to Deve 阅读全文
posted @ 2023-09-14 11:30 孤海飞雁 阅读(1162) 评论(0) 推荐(0)
摘要: 安装webview2 不然报错找不到路径,运行时也安装下 阅读全文
posted @ 2023-09-12 17:16 孤海飞雁 阅读(79) 评论(0) 推荐(0)
摘要: 依赖注入 先添加要注册的对象 如 AddTransient<IA,A>()到 ServiceCollection ;然后将添加的 对象 添加到到 容器里,这里根据 添加 对象的不同,如 .AddScoped<IB>(_ => new B()),AddSingleton<IC>(new C());等然 阅读全文
posted @ 2023-09-10 23:52 孤海飞雁 阅读(18) 评论(0) 推荐(0)
摘要: 通过构造函数获取ISchedulerFactory private async void InitJob() { var _scheduler = await _schedulerFactory.GetScheduler(); _scheduler.JobFactory = new QuartzJo 阅读全文
posted @ 2023-09-10 17:10 孤海飞雁 阅读(213) 评论(0) 推荐(0)
摘要: 监听System.Data.SqlClient 为例 通过观察者模式和 DiagnosticListener获取监听数据, 在开始InstrumentationHostedService实现IHostedService启动 然后通过 DiagnosticListener.AllListeners.S 阅读全文
posted @ 2023-09-03 15:38 孤海飞雁 阅读(90) 评论(0) 推荐(0)
摘要: 官方下载地址 Downloads | Apache SkyWalking jdk 12.2 解压 找到 bin/startup目录 启动,不连接数据库,采用内存记录 webapp\application.yml 可以更改 web程序启动端口 config\application.yml 更改配置,具 阅读全文
posted @ 2023-08-30 21:47 孤海飞雁 阅读(170) 评论(0) 推荐(0)
摘要: using System; using System.Collections.Generic; using SqlSugar; $blankline {{ var today=new Date(); var fullYear=today.getFullYear(); var month=today. 阅读全文
posted @ 2023-08-25 14:20 孤海飞雁 阅读(87) 评论(0) 推荐(0)
摘要: Microsoft.AspNetCore.Hosting.HttpRequestIn.Start Microsoft.AspNetCore.Hosting.BeginRequest Microsoft.AspNetCore.Routing.EndpointMatched 终结点匹配 Microsof 阅读全文
posted @ 2023-06-30 22:07 孤海飞雁 阅读(54) 评论(0) 推荐(0)
摘要: 在部署到西藏职院 测试 流程时(Net6), 有个在线预览功能,pc 端可以,但是在微信端预览时就报错了,提示 ERR_BLOCKED_BY_RESPONSE,百度设置x-frame-options=sameorigih,还是有问题,链接有一个 http和一个https(问题就出在这里,微信端被强制 阅读全文
posted @ 2023-06-22 10:55 孤海飞雁 阅读(130) 评论(0) 推荐(0)