随笔分类 - 常见问题解决方案
摘要:一、端口 查看端口情况: netstat -na | findstr 443 远程主机端口连通测试:(可能需要安装telnet) telnet [IP] [port] 二、win11开机启动Numlock键 打开注册表,定位到HKEY_USERS > .DEFAULT > Control Panel
阅读全文
摘要:根据 OpenAPI document 生成.net 类 包括Controller class Entity class 支持输入yaml/json 工具下载地址: NSwagStudio.msi 参考 https://learn.microsoft.com/en-us/aspnet/core/tu
阅读全文
摘要:activate tornado_evn //激活虚拟环境
阅读全文
摘要:一、IIS https绑定 1、进入iis导入服务器证书pfx 2、双击pfx证书文件进行默认安装 3、进入iis站点绑定证书 二、证书过期之后需要更换新证书 准备条件: 1、 生成一个有效的.pfx证书文件,并提供密码 操作步骤: 1、 进入服务器,打开IIS管理器 2、 进入服务器证书选项卡 3
阅读全文
摘要:一、git 常规操作 查看远程分支 git branch -r 注: 带*的是当前分支 切换分支 git checkout [分支名称] 二、git 版本回退 1、git log 2、git reset --hard 目标版本号 //将远程库的HEAD指向目标版本 目标版本号 = commit 后面
阅读全文
摘要:打开注册表,定位到HKEY_USERS > .DEFAULT > Control Panel > Keyboard,修改InitialKeyboardIndicators值2147483648为80000002
阅读全文
摘要:后端API使用Httpclient访问一个https服务端接口时出现HandshakeFailure,也就是握手失败 postman调用没问题 python requests verify=False 调用也没问题 以下是握手失败可能的原因: 详情参考:https://developpaper.co
阅读全文
摘要:创建无身份认证的webapi,发布到Azure 应用服务 进入Azure 后台-应用服务-身份认证-添加标识提供者为Azure AD 身份认证,见下图:设置 1、选择一个现有的应用,或者注册一个新的应用,我们这里使用现有的应用【CST_API_Application】 2、颁发者 URL:https
阅读全文
摘要:windows平台访问远程服务器共享目录下的access数据库文件 public class SharedDirectoryManager { // logon types private const int Logon32_Logon_Interactive = 2; private const
阅读全文
摘要:引用:Aspose.Cells using System; using System.IO; namespace WIMI.BTL.ExcelToPdf { public class ExcelToPdfUtil { private const string QualityReportPath =
阅读全文
摘要:private static string ExceptionFormat(Exception ex, string customMessage = "") { var sb = new StringBuilder(); sb.AppendLine($"【错误信息】{customMessage}:{
阅读全文
摘要:1、下载NSSM工具2、打开cmd3、定位到NSSM程序目录:C:\Users\Administrator\Downloads\nssm-2.24\win644、安装服务:nssm install <servicename> <apppath>5、启动服务:nssm start <servicena
阅读全文
摘要:Migration冲突 回退: 1、 回退到指定版本,命令:update-database -TargetMigration:名称 -Force 注:一般回退到线上数据库版本,必须保证和线上数据库版本一致, -Force参数表示强制执行,会删除相关数据 2、 删除未使用的ef自动生成的迁移类,生成解
阅读全文
摘要:1 $("#reversecheckallmachines").on("change", function () { 2 var checkedNodes = []; 3 var uncheckedNodes = []; 4 5 var nodes = $tree.jstree("get_json"
阅读全文
摘要:dateFormat(d, fmt) { var o = { 'M+': d.getMonth() + 1, 'd+': d.getDate(), 'h+': d.getHours(), 'm+': d.getMinutes(), 's+': d.getSeconds(), 'q+': Math.f
阅读全文
摘要:错误 在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。 如果是如果把项目部署在虚拟目录,右键转换为应用程序即可
阅读全文
摘要:The type Database cannot be constructed. You must configure the container to supply this value. 在ConnectionString配置节增加 providerName="System.Data.SqlCl
阅读全文