上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 65 下一页
摘要: from:https://www.cnblogs.com/refuge/p/8534847.html 服务端接收文件流代码: public async Task<HttpResponseMessage> ReceiveFileByStream() { var stream = HttpContext 阅读全文
posted @ 2019-05-20 10:23 94cool 阅读(3054) 评论(0) 推荐(0)
摘要: /// <summary> /// 创建文件路径 /// </summary> /// <param name="filepath"></param> /// <returns></returns> private void CreatePath(string filepath) { if (!Di 阅读全文
posted @ 2019-05-20 10:12 94cool 阅读(342) 评论(0) 推荐(0)
摘要: [root@demo /]# mysql -u root -p #登录服务器数据库 Enter password:123xxx >user mysql; >CREATE USER 'rtuser'@'%' IDENTIFIED BY 'gs@2019#'; >ALTER USER 'rtuser'@ 阅读全文
posted @ 2019-05-19 10:13 94cool 阅读(2037) 评论(0) 推荐(0)
摘要: 在现在这个浮躁的社会,越来越多的人认为读书没用,我们书本上学到的那些东西用不到。 而实际上,在关键时刻,一个人的逻辑和表达能力,完全帮的上你的大忙. 是的,这世界很残酷,丛林法则和竞争无处不在,我们要有随时可以掀桌子的实力,同时还要有不掀桌子的素养,而这种实力和素养,都离不开一个文化知识的积累! 很 阅读全文
posted @ 2019-05-15 12:01 94cool 阅读(563) 评论(0) 推荐(0)
摘要: from:https://www.infoq.cn/article/eSYzcMZK4PkOzZC_68fv 在这篇文章中,作者将分享 12 个非常有用的 JavaScript 技巧,可以帮助你写出简洁且高性能的代码。 1. 过滤唯一值 ES6 引入了 Set 对象和延展(spread)语法…,我们可以用它们来创建一个只包含唯一值的数组。 复制代码 const array = [1, 1, 2... 阅读全文
posted @ 2019-04-23 08:51 94cool 阅读(422) 评论(0) 推荐(0)
摘要: 在window服务器上部署nuget服务器时,发布包时出现请求报错 406 (Not Acceptable) 验证用户名、密码正确的情况下,还是出现上面错误。后面跟踪服务器日志,发现window\temp文件超过65535,删除过期临时文件后即可 阅读全文
posted @ 2019-04-22 11:27 94cool 阅读(1130) 评论(0) 推荐(0)
摘要: using System;using System.Diagnostics;using System.Linq;using System.ServiceProcess; namespace ScmWrapper{ public class ServiceHandler { #region 安装服务 阅读全文
posted @ 2019-04-17 17:19 94cool 阅读(664) 评论(0) 推荐(0)
摘要: public class FileAPIController : BaseController { private readonly string prefix = "thumb_"; private readonly Token token; private readonly ServiceImpl.Config.AppConfig config;... 阅读全文
posted @ 2019-04-03 15:28 94cool 阅读(3423) 评论(0) 推荐(0)
摘要: c# 中HttpClient访问Https网站,加入如下代码: handler = new HttpClientHandler() ;handler.AllowAutoRedirect = true;handler.UseCookies = true;handler.CookieContainer = cookies; System.Net.ServicePointManager.Security... 阅读全文
posted @ 2019-03-25 10:21 94cool 阅读(6661) 评论(2) 推荐(0)
摘要: 1、public void Configure(IApplicationBuilder app, IHostingEnvironment env)方法里面 不要加上:app.UseCors(); 2、上面方法加上: app.UseMiddleware(); 3、中间代码如下: public class CorsMiddleware{ private readonly RequestDel... 阅读全文
posted @ 2019-03-15 10:32 94cool 阅读(891) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 65 下一页