摘要:
一、依赖注入 三种生命周期 1.接口注入2.set注入3.构造注入 二、密码MD5加密 public static string CreateMd5(string inputValue) { //32位大写 using (var md5 = MD5.Create()) { var result = 阅读全文
posted @ 2022-03-29 20:53
杨鑫0621
阅读(141)
评论(0)
推荐(0)
摘要:
首先在你的项目中用Nuget安装以下两个类库NLog.Extensions.Logging和NLog.Web.AspNetCore然后新建NLog的配置文件Nlog.config,内容如下 : 然后在Startup>Configure中引入Nlog public void Configure(IAp 阅读全文
posted @ 2022-03-29 07:50
杨鑫0621
阅读(22)
评论(0)
推荐(0)