会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
PrintY
天再高又如何,踮起脚我就能靠近太阳!
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
4
5
6
7
8
9
10
11
12
···
18
下一页
2022年3月29日
C# 执行项目中sql文件
摘要: 受人之托,写个鸡肋博客~,for 二黑 ,PS:黑不是你的错,又黑又胖就是你不对了~ 1、创建SqlHelper类 查看代码 /// <summary> /// ado.net方式执行sql语句 /// Print.Y /// </summary> public class SqlHelper {
阅读全文
posted @ 2022-03-29 09:27 PrintY
阅读(572)
评论(0)
推荐(0)
2022年3月24日
IIS配置导入导出
摘要: 使用管理员身份运行cmd 应用程序池: # 导出所有应用程序池 %windir%\system32\inetsrv\appcmd list apppool /config /xml > c:\apppools.xml # 导入所有应用程序池 %windir%\system32\inetsrv\app
阅读全文
posted @ 2022-03-24 10:30 PrintY
阅读(409)
评论(0)
推荐(0)
2022年3月23日
.NET 6 部署到Docker
摘要: 1、Docker支持 创建项目,勾选“Docker支持”,如果未勾选则如下图所示操作下。 2、Dockerfile 选择“始终复制” 然后修改下Dockerfile文件,注释掉多余内容,如果不注释在打包成镜像的时候会提示找不到文件。这个文件最好是按照我这个来,亲测可用。 3、发布项目 和正常发布一样
阅读全文
posted @ 2022-03-23 18:16 PrintY
阅读(2655)
评论(2)
推荐(1)
Git 上传项目命令行
摘要: 本地已有项目,远程服务器上也创建好git路径,现在需要将本地项目上传至git。 #右键项目文件夹,选择“git create repository here”,创建git本地仓储 #进入项目文件夹,初始化一个Git仓库 git init #加入当前目录下所有文件放入临时状态/暂存区(Staging)
阅读全文
posted @ 2022-03-23 10:16 PrintY
阅读(232)
评论(0)
推荐(0)
2022年3月22日
CentOS 7 ip addr不显示 ip地址
摘要: 虚拟机CentOS7 键入命令行 ip addr 不显示IP地址 1、修改网卡配置 vi /etc/sysconfig/network-scripts/ifcfg-ens32 如果文件内容空,则改成 ifcfg-ens33 2、修改文件 改成yes 3、重启网络服务 systemctl restar
阅读全文
posted @ 2022-03-22 15:48 PrintY
阅读(737)
评论(0)
推荐(1)
2022年3月18日
CentOS 7.9 安装 Docker
摘要: 系统环境:阿里云服务器 CentOS Linux release 7.9.2009 (Core) 1、Docker安装 1.1 查看系统版本+系统内核版本 cat /etc/centos-releaseuname -a 1.2 安装yum sudo yum install -y yum-utils
阅读全文
posted @ 2022-03-18 18:48 PrintY
阅读(235)
评论(0)
推荐(0)
2022年3月16日
.NET6 Swagger 显示注释
摘要: 1、修改Program.cs 这行代码默认就有: if (app.Environment.IsDevelopment()) { app.UseSwagger(); app.UseSwaggerUI(); } 重点是这里的代码: builder.Services.AddSwaggerGen((opti
阅读全文
posted @ 2022-03-16 16:49 PrintY
阅读(1206)
评论(0)
推荐(0)
2022年3月10日
.NET6 RabbitMQ(参考示例代码)
摘要: 1、发送消息 /// <summary> /// 普通模式 /// </summary> /// <param name="connFactory"></param> public void rabbitmq(IConnectionFactory connFactory) { using (ICon
阅读全文
posted @ 2022-03-10 15:30 PrintY
阅读(557)
评论(0)
推荐(0)
.NET POST GET
摘要: 引用 Newtonsoft.Json // Post请求 public string PostResponse(string url,string postData,out string statusCode) { string result = string.Empty; //设置Http的正文
阅读全文
posted @ 2022-03-10 15:18 PrintY
阅读(83)
评论(0)
推荐(0)
2022年3月8日
.NET6 读取appsettings.json
摘要: 1、安装所有NuGet包 2、上代码 2.1 新建helper类 private static IConfiguration _config; public AppsettingHelper(IConfiguration configuration) { _config = configuratio
阅读全文
posted @ 2022-03-08 14:51 PrintY
阅读(3414)
评论(0)
推荐(0)
上一页
1
···
4
5
6
7
8
9
10
11
12
···
18
下一页
公告