2019年12月31日
摘要: <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-sca 阅读全文
posted @ 2019-12-31 17:51 絆τ 阅读(750) 评论(0) 推荐(0) 编辑
2019年12月29日
摘要: /// <summary> /// IServiceCollection扩展 /// </summary> public static class ServiceExtension { /// <summary> /// 用DI批量注入接口程序集中对应的实现类。 /// <para> /// 需要注 阅读全文
posted @ 2019-12-29 14:02 絆τ 阅读(294) 评论(0) 推荐(0) 编辑
2019年12月14日
摘要: using DocumentFormat.OpenXml; using DocumentFormat.OpenXml.Packaging; using DocumentFormat.OpenXml.Spreadsheet; using System; using System.Collections 阅读全文
posted @ 2019-12-14 16:58 絆τ 阅读(420) 评论(0) 推荐(0) 编辑
2019年8月29日
摘要: 1 阅读全文
posted @ 2019-08-29 11:35 絆τ 阅读(153) 评论(0) 推荐(0) 编辑
2019年8月7日
摘要: 在高并发的应用场景中,由于来不及同步处理请求,接收到的请求往往会发生阻塞。例如,大量的插入、更新请求同时到达数据库,这会导致行或表被锁住,最后会因为请求堆积过多而触发“连接数过多的异常” 的错误。因此,在高并发的应用场景中需要一个缓冲机制,而消息队列则可以很好地充当这样一个角色。消息队列通过异步处理 阅读全文
posted @ 2019-08-07 17:51 絆τ 阅读(544) 评论(0) 推荐(1) 编辑
2019年4月24日
摘要: public string GetProperties<T>(T t) { string tStr = string.Empty; if (t == null) { return tStr; } System.Reflection.PropertyInfo[] properties = t.GetT 阅读全文
posted @ 2019-04-24 10:27 絆τ 阅读(395) 评论(0) 推荐(0) 编辑
2019年2月27日
摘要: .net 爬虫 <PackageReference Include="HtmlAgilityPack" Version="1.9.0" /> <PackageReference Include="HttpCode.Core" Version="4.2.0" /> https://github.com 阅读全文
posted @ 2019-02-27 16:13 絆τ 阅读(1490) 评论(0) 推荐(0) 编辑
2019年2月22日
摘要: 1.有空格的字符串 拆成数组 string str = System.Text.RegularExpressions.Regex.Replace(headProducts, @"\s+", ","); string[] Products= str.Split(','); 2.生成日志 public 阅读全文
posted @ 2019-02-22 15:12 絆τ 阅读(178) 评论(0) 推荐(0) 编辑
2019年2月19日
摘要: 刚刚注册完腾讯云,因为要用来跑作业代码,所以操作系统选择的Ubuntu 16.04 32位 用Winscp登陆之后出现了错误代码为3的permission denied的错误,不能创建路径,也不能上传文件 后来发现是缺乏超级权限导致的,在网上找到了解决方法: http://msiyuetian.bl 阅读全文
posted @ 2019-02-19 17:46 絆τ 阅读(2762) 评论(0) 推荐(0) 编辑
2019年1月30日
摘要: 1、找到下载的目录 2、新建一个文本文档 3、在文本文档上输入postgresql-11.1-1-windows-x64.exe --install_runtimes 0 4、修改文本文档后缀为.bat 5、运行这个批处理文件 6、完成 阅读全文
posted @ 2019-01-30 15:57 絆τ 阅读(1943) 评论(0) 推荐(1) 编辑