摘要: 1.netcore2.0 HttpResponseMessage 将原本返回的JSON信息变成下面信息 { "version": {}, "content": {}, "statusCode": 200, "reasonPhrase": "OK", "headers": [], "requestMe 阅读全文
posted @ 2021-01-13 15:48 汪汪汪~~ 阅读(220) 评论(0) 推荐(0) 编辑
摘要: 1.将配置信息写在appsetting.json里面 2.创建一个类,包含配置文件的属性 public class AppSettingModel { public string CC_URL { get; set; } } 3.startup里面,将配置文件和类绑定 4.使用 阅读全文
posted @ 2021-01-13 13:41 汪汪汪~~ 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 1.install-package log4net 2.添加log4net配置 <?xml version="1.0" encoding="utf-8"?> <configuration> <!-- This section contains the log4net configuration se 阅读全文
posted @ 2021-01-13 11:14 汪汪汪~~ 阅读(125) 评论(0) 推荐(0) 编辑