摘要: 配置文件如下 { "Logging": { "LogLevel": { "Default": "Information", "Microsoft": "Warning", "Microsoft.Hosting.Lifetime": "Information" } }, "Version": "v1. 阅读全文
posted @ 2021-01-22 22:01 Lin_pin 阅读(604) 评论(0) 推荐(0) 编辑
摘要: IIS 安装 控制面板 -> 程序 -> 启动或关闭windows功能 -> Internet Information Service (勾选所有选项) 部署 下载地址:https://dotnet.microsoft.com/download/dotnet/5.0 必须安装 点击项目,选择【发布】 阅读全文
posted @ 2021-01-22 16:45 Lin_pin 阅读(1227) 评论(0) 推荐(0) 编辑
摘要: Asp.Net.Core5 引入log4net 1,nuget引入程序集 log4Net 2,nuget引入程序集 Microsoft.Extensions.Logging.Log4Net.AspNetCore 3,配置文件 log4net.Config 4,记录日志 1,log4Net包安装 2, 阅读全文
posted @ 2021-01-22 15:11 Lin_pin 阅读(816) 评论(0) 推荐(1) 编辑
摘要: 传值5种方式 1,ViewBag 2,ViewData 3,TempData 4,Model 5,Session 控制器代码 public IActionResult Index() { base.ViewBag.UserName = "李潇潇"; base.ViewData["UserName"] 阅读全文
posted @ 2021-01-22 14:24 Lin_pin 阅读(427) 评论(0) 推荐(0) 编辑
摘要: 1,添加新项目 2,配置新项目 3,创建新的Asp.Net Core Web应用程序 4,项目创建成功,文件内容 5,启动项目(打开界面) 阅读全文
posted @ 2021-01-22 13:58 Lin_pin 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 环境要求 1、Visual Studio 2019 16.8以上版本 安装时注意 是在线安装 下载地址:https://visualstudio.microsoft.com/zh-hans/vs/ 可选择Community2019 2、.Net5运行时安装 下载地址:https://dotnet.m 阅读全文
posted @ 2021-01-21 22:55 Lin_pin 阅读(905) 评论(0) 推荐(0) 编辑
摘要: windows 服务器更新包下载 由于更新程序包大,导致下载更新失败。 解决方案1 下载程序包:https://www.catalog.update.microsoft.com/Search.aspx?q=KB4577015 安装 解决方案2 在【设置】-【Windows更新】中下载安装 阅读全文
posted @ 2020-09-10 10:13 Lin_pin 阅读(391) 评论(0) 推荐(0) 编辑
摘要: --每天记录DECLARE @start DATE,@end DATE SET @start='2020-7-1' SET @end='2020-7-20' select DATEADD(DAY,number,@start) ymd from master..spt_values where typ 阅读全文
posted @ 2020-07-06 17:35 Lin_pin 阅读(1419) 评论(0) 推荐(0) 编辑
摘要: 设计表如下 --收入表 CREATE TABLE income ( inid INT PRIMARY KEY IDENTITY(1, 1), indate DATETIME, --时间 intype VARCHAR(10), -- 收入类型 amount DECIMAL(18, 2) --金额 ) 阅读全文
posted @ 2020-07-02 10:32 Lin_pin 阅读(148) 评论(0) 推荐(0) 编辑
摘要: from urllib import request from bs4 import BeautifulSoup as bs import re import time import string # 网址 url = 'http://www.tcmap.com.cn/list/car_list.h 阅读全文
posted @ 2020-07-01 11:20 Lin_pin 阅读(385) 评论(0) 推荐(0) 编辑