Fork me on GitHub
摘要: /// <summary> /// AOP 目标:use AspectCore ,在执行 HelloAsync 失败的时候自动执行 HelloFallBackAsync ,达到熔断降级 /// </summary> class Program { static void Main(string[] 阅读全文
posted @ 2020-02-24 10:57 Something_Diffrent 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 官方: https://github.com/App-vNext/Polly Polly is a .NET resilience and transient-fault-handling library that allows developers to express policies such 阅读全文
posted @ 2020-02-24 10:47 Something_Diffrent 阅读(170) 评论(0) 推荐(0) 编辑
摘要: 1.对查询进行优化,应尽量避免全表扫描,首先应考虑在 where 及 order by 涉及的列上建立索引。 2.应尽量避免在 where 子句中对字段进行 null 值判断,否则将导致引擎放弃使用索引而进行全表扫描,如: select id from t where num is null 可以在 阅读全文
posted @ 2020-02-10 16:27 Something_Diffrent 阅读(124) 评论(0) 推荐(0) 编辑
摘要: step 1. 将httpd容器中/usr/local/apache2/conf/httpd.conf和 /usr/local/apache2/conf/extra/httpd-ssl.conf 拷贝出来用于修改docker cp命令: step 2. 将/usr/local/apache2/con 阅读全文
posted @ 2020-01-10 15:45 Something_Diffrent 阅读(923) 评论(0) 推荐(0) 编辑
摘要: { "pfx_name": "server_keystore.pfx", "pfx_pswd": "87654321", "server_port": 443} 阅读全文
posted @ 2020-01-07 16:53 Something_Diffrent 阅读(721) 评论(0) 推荐(0) 编辑
摘要: 1. cd <=> Change Directory 2. whoami 3. id -u 4. Cat /etc/shells 列出各个shell 5. Cat 只能看文本文件 6. Echo $SHELL 当前shell 默认为/bin/bash 7. # administrator $ oth 阅读全文
posted @ 2019-11-21 16:42 Something_Diffrent 阅读(136) 评论(0) 推荐(0) 编辑
摘要: 以Windows 10系统为例。 一、安装OpenSSL 先到http://slproweb.com/products/Win32OpenSSL.html 去下载OpenSSL(根据系统选择32位或者64位版本下载安装)。 然后安装在C:\OpenSSL-Win64下。 然后配置环境变量。在系统环境 阅读全文
posted @ 2019-11-04 10:47 Something_Diffrent 阅读(526) 评论(0) 推荐(0) 编辑
摘要: /// 初始化时设置为只能竖屏@override void initState() { SystemChrome.setPreferredOrientations([ DeviceOrientation.portraitUp, DeviceOrientation.portraitDown ]); super.initState(); } /// 退出时还原四个方向dispose(){ System 阅读全文
posted @ 2019-10-07 11:10 Something_Diffrent 阅读(893) 评论(0) 推荐(0) 编辑
摘要: https://github.com/HePeng11/ngAlainDemo-netcoreapi 阅读全文
posted @ 2019-09-08 21:41 Something_Diffrent 阅读(410) 评论(0) 推荐(0) 编辑
摘要: 可能是flutter的文件被破坏,可以尝试重新下载解压 阅读全文
posted @ 2019-08-16 16:08 Something_Diffrent 阅读(1448) 评论(0) 推荐(0) 编辑