摘要: 前后端分离后端需要验证请求的安全性 1、增加时间戳 2、增加参数的验证规则 阅读全文
posted @ 2024-04-12 17:45 blsegirl 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 微软官方发布过专门的 IIS CORS模块,文件大小不到1M。 下载地址:https://www.iis.net/downloads/microsoft/iis-cors-module 官方参考手册: https://learn.microsoft.com/zh-cn/iis/extensions/ 阅读全文
posted @ 2024-03-13 09:14 blsegirl 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 增加样式 style="white-space: pre-wrap" 阅读全文
posted @ 2023-09-06 10:35 blsegirl 阅读(62) 评论(0) 推荐(0) 编辑
摘要: 注意事项: 创建一个无托管代码的应用程序池 创建web应用程序在站点下,选择创建的应用程序池 配置url重写 阅读全文
posted @ 2023-03-30 17:23 blsegirl 阅读(97) 评论(0) 推荐(0) 编辑
摘要: /// <summary> /// 系统模块枚举注释 /// </summary> public class GroupInfoAttribute : Attribute { public string Title { get; set; } public string Version { get; 阅读全文
posted @ 2022-02-16 15:12 blsegirl 阅读(370) 评论(0) 推荐(0) 编辑
摘要: //配置swagger services.AddSwaggerGen(m => { //生成单个版本 m.SwaggerDoc("SWG1", new OpenApiInfo { Title = "swaggerTest", Version = "SWG1" }); //生成多个版本控制接口 //要 阅读全文
posted @ 2022-02-14 14:45 blsegirl 阅读(68) 评论(0) 推荐(0) 编辑
摘要: public string ImportError(List<User> users) { string date = DateTime.Now.ToString("yyyyMMdd"); string sWebRootFolder = Path.GetDirectoryName(typeof(Us 阅读全文
posted @ 2021-12-07 13:55 blsegirl 阅读(154) 评论(0) 推荐(0) 编辑
摘要: //格式化日期 FormatDate: function(date) { if(date == undefined || date == "" || date == null) { return "" } date = new Date(date); var seperator1 = "-"; va 阅读全文
posted @ 2021-10-20 15:44 blsegirl 阅读(1278) 评论(0) 推荐(0) 编辑
摘要: 1、 配置nginx自启动,利用nssm进行自启服务安装,将nssm-2.24.zip进行解压,找到服务系统要求的nssm.exe,可以将他放置在nginx的目录。 a) 注册nginx,首先将文件路径切换到nssm的目录: b) 输入安装命令nssm install my_nginx “my_ng 阅读全文
posted @ 2021-09-28 14:09 blsegirl 阅读(775) 评论(0) 推荐(0) 编辑
摘要: [ApiExplorerSettings(IgnoreApi = true)] 阅读全文
posted @ 2021-09-24 16:15 blsegirl 阅读(19) 评论(0) 推荐(0) 编辑