上一页 1 2 3 4 5 6 ··· 8 下一页
摘要: 本文旨在介绍log4net相关节点的配置项,下一章会会详细讲解log4net在Asp.Net core中使用。 log4net 是Apache下的一个开源项目,可以控制日志信息的输出介质并定义了多种日志信息输出模式,可以根据需要将信息输出到控制台、文本文件、windows日志数据库、邮件等。 log 阅读全文
posted @ 2023-09-13 11:23 云霄宇霁 阅读(214) 评论(0) 推荐(0) 编辑
摘要: CSP(Content Security Policy)内容安全策略 是一个额外的安全层,用于检测并削弱某些特定类型的攻击,包括跨站脚本(XSS)和数据注入攻击等。无论是数据盗取,网站内容污染还是恶意软件分发,这些攻击都是主要的手段。 CSP被设计完全向后兼容,不支持CSP的浏览器也能与实现了CSP 阅读全文
posted @ 2023-06-03 21:38 云霄宇霁 阅读(217) 评论(0) 推荐(0) 编辑
摘要: HTTP Strict-Transport-Security (通常简称为HSTS) response header用来通知浏览器应该只通过HTTPS访问该站点,并且以后使用HTTP访问该站点的所有尝试都应自动重定向到HTTPS。 语法 Strict-Transport-Security: max- 阅读全文
posted @ 2023-06-03 21:38 云霄宇霁 阅读(197) 评论(0) 推荐(0) 编辑
摘要: ?: ?= ?!非捕获元的使用 正则表达式中()表示捕获分组,()会把每个分组里的匹配的值保存起来,多个匹配值可以通过数字n来查看(n是一个数字,表示第n个捕获组的内容)。 ?: 是用来消除使用圆括号匹配被缓存的副作用。 ?= 正向预查,在任何开始匹配圆括号内的正则表达式模式的位置来匹配搜索字符串。 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(8) 评论(0) 推荐(0) 编辑
摘要: Azure Active Directory(Azure AD)支持两种类型的身份验证:基于Password的身份验证和基于Certificate的身份验证。虽然可以通过Azure Portal或者Microsoft API(Microsoft Graph)创建Password,但长期保护Passw 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(114) 评论(0) 推荐(0) 编辑
摘要: SQL Server索引基本上项目中都会用到,但是很多时候使用不规范甚者滥用,原因很简单就是对SQL Server 索引原理了解不清导致的。本篇文章旨在以详细通俗的方式介绍SQL Server索引。 索引是什么? 索引是与表或试图关联的磁盘上的结构,可以加快从表或试图中检索行的速度。索引包含由表或试 阅读全文
posted @ 2023-06-03 21:37 云霄宇霁 阅读(230) 评论(0) 推荐(0) 编辑
摘要: The Adpative design pattern converts the interface of a class to another interface clients expect. This design pattern lets classes work together that 阅读全文
posted @ 2023-06-03 21:34 云霄宇霁 阅读(3) 评论(0) 推荐(0) 编辑
摘要: The Bridge design pattern decouples an abstraction from its implementation so tha the two can vary independently. 桥接模式将抽象和实现解耦,以便两者可以独立变化。 UML Class D 阅读全文
posted @ 2023-06-03 21:34 云霄宇霁 阅读(2) 评论(0) 推荐(0) 编辑
摘要: The Decorator Design Pattern attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to subclassing 阅读全文
posted @ 2023-06-03 21:33 云霄宇霁 阅读(1) 评论(0) 推荐(0) 编辑
摘要: The Composite design pattern composes objects into tree structures to represent part-whole hierarchies. This pattern lets clients treat individual obj 阅读全文
posted @ 2023-06-03 21:33 云霄宇霁 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 8 下一页